Skip to the content
Documentation

content_version_view_gui

No ratings yet

Summary

Outputs a view template for a content object version.

Usage

{content_version_view_gui content_version=version [ view=mode ]  [ parameter=value [...] ]}

Parameters

Name Type Description Required
content_version object The target version. Yes.
view string The view mode that should be used. No.
parameter any Parameter(s) that will be passed to the included template. No.

Description

This function shows the view interface for a content object version. The target version must be specified (as a "ezcontentobjectversion" object) using the "content_version" parameter. The "view" parameter is optional, it can be used to specify a desired view (for example "full", "plain", "text", etc.). The function will attempt to use the following template from within either the current design or one of the fallback designs: "templates/content/version/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.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.