ez.no / exponential / documentation / reference / template functions / gui / content_view_gui
{content_view_gui content_object=$contentObject [ view='view_mode' [ parameter=$value [ ... ] ] ] }
| Name | Type | Description | Required |
|---|---|---|---|
| content_object | object | The content object. | Yes. |
| view | string | The view mode to use. | No. |
| other parameters | mixed | Parameters passed to the GUI template. | No. |
The GUI for viewing content object.
Show the content object view GUI. You must supply the content_object parameter. The view parameter, specifying which view mode to use, is optional. Any other parameters are passed on as template variables.
The following view mode are defined in standard Exponential:
You can create your own view mode by adding name_of_view_mode.tpl under design/standard/templates/content/view folder.
Show the text_linked view of content object $myObject.
{content_view_gui view=text_linked content_object=$myObject}
Comments