Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

content_view_gui

Summary

Outputs a view template for a content object.

Usage

{content_view_gui content_object=object [ view=view ] [ parameter=value [...] ]}

Parameters

NameTypeDescriptionRequired
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

    Can someone please give some guidance regarding when/why to use this and when to use node_view_gui <http://ez.no/doc/ez_publish/techn...ons/visualization/node_view_gui>?
  • Intention of the various 'Standard' views?

    Some documentation regarding the intended use of the various 'views' available in the 'Standard' templates would be helpful. Especially when deciding how/whether to override a template for a particular purpose. [I have not been able to find comprehensive documentation in this regard.]