Skip to the content
Documentation

attribute_view_gui

No ratings yet

Summary

Outputs the view template for a content object attribute.

Usage

{attribute_view_gui attribute=attribute [ parameter=value [...] ]}

Parameters

Name Type Description Required
attribute object The target content object attribute. Yes.
parameters any Parameter(s) that will be passed to the included template. No.

Description

This function shows the view interface for a content object attribute. The attribute must be specified (as a "ezcontentobjectattribute" object) using the "attribute" parameter. All other parameters (of any type) will be passed on and thus become available as template variables in the included template.

Contributors

Comments (2 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Exemple

    Stéphane ·

    Hello,
    It would be usefull to have an exemple on how to use parameter with attribute_view_gui function.
    Thank

    1. Re: Exemple

      Seth Gottlieb ·

      In your calling template you do something like:
      {attribute_view_gui attribute=$node.object.data_map.file link_text='Download'}
      Then in your attribute template you can access this variable by doing something like:
      {$link_text}

Comments

Add a comment

Comments are read by a moderator before they appear.