content_view_gui
Summary
Outputs a view template for a content object.Usage
{content_view_gui content_object=object [ view=view ] [ parameter=value [...] ]}
Parameters
Name | Type | Description | Required |
---|---|---|---|
content_object | object | The target content object. | Yes. |
view | string | The view mode that should be used. | No. |
other parameters | any | Parameter(s) that will be passed to the included template. | No. |
Description
This function shows the view interface for a content object. The target object must be specified (as an "ezcontentobject" object) using the "content_object" parameter. The "view" parameter is optional, it can be used to specify a desired view (for example "text", "text_linked", "embed", etc.). The function will attempt to use the following template from either the current design or one of the fallback designs: "templates/content/view/[name_of_view_mode].tpl". All other parameters (of any type) will be passed on and thus become available as template variables in the included template.
Balazs Halasy (06/02/2004 1:16 pm)
Balazs Halasy (28/04/2005 2:16 pm)
Comments
When to use
Wednesday 12 April 2006 10:15:09 pm
James Robertson
Intention of the various 'Standard' views?
Wednesday 12 April 2006 10:17:09 pm
James Robertson
$object
Monday 19 May 2008 12:51:50 pm
Adrien