Path

ez.no / documentation / ez publish / technical manual / 4.x / reference / template functions


You are now viewing the documentation of eZ Publish legacy (4.x series and the legacy "stack" in 5.x). For 5.x versions this documentation must be complemented with the latest, more current documentation available at confluence.ez.no. Happy learning!

Template functions

Debugging

FunctionSummary
debug-accumulator Generates debug statistics for a block of template code.
debug-log Generates a debug log entry for the specified variables.
debug-timing-point Measures the time it takes to process a block of template code.
debug-trace Generates an XDebug dump which can be traced/analyzed.

Miscellaneous

FunctionSummary
cache-block Caches the contents of a template block to static content for fast retrieval. Useful to avoid fetching content over and over from database when it is possible to cache it within a set of parameters. Note: cache-blocks also introduces some overhead, so do not have too many of them on a page, let them span parts of your page like e.g. header, footer and left menu.
fetch_alias Executes a fetch based on configuration settings.
include Includes a file.
ldelim Outputs a left curly bracket, "{".
literal Instructs the parser to ignore a block of template code.
rdelim Outputs a right curly bracket, "}".
run-once Assures that a block of template code is run only once within a page view.

Variables

FunctionSummary
append-block Redirects the output from multiple blocks of template code to an array.
def Declares (and defines) a variable. Warns if the variable already exists.
default Deprecated.
let Deprecated.
sequence Creates a sequence that can be iterated.
set Sets the value of a variable.
set-block Redirects the output from a block of template code to a string.
undef Destroys previously defined variable(s).

Visualization

FunctionSummary
attribute_edit_gui Outputs the edit template for a content object attribute.
attribute_pdf_gui Outputs the PDF template for a content object attribute (DEPRECATED).
attribute_result_gui Outputs the result template for a content object attribute.
attribute_view_gui Outputs the view template for a content object attribute.
class_attribute_edit_gui Outputs the edit template for a content class attribute.
class_attribute_view_gui Outputs the view template for a content class attribute.
collaboration_icon Outputs the icon for a collaboration item.
collaboration_participation_view Outputs information about a collaboration participant.
collaboration_simple_message_view Outputs the view template for a collaboration message.
collaboration_view_gui Outputs the template for a collaboration item.
content_pdf_gui Outputs the PDF template for a content object (DEPRECATED).
content_version_view_gui Outputs a view template for a content object version.
content_view_gui Outputs a view template for a content object.
event_edit_gui Outputs the edit template for a workflow event.
node_view_gui Outputs the view template for a node.
related_view_gui Not documented yet.
shop_account_view_gui Outputs the view template for a specified order.
tool_bar Outputs the template for a toolbar.

Balazs Halasy (28/02/2005 2:01 pm)

Balazs Halasy (28/02/2005 2:01 pm)


Comments

There are no comments.