📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.
class / eZTemplateBlockFunction
|
Detailed DescriptionAdvanced block handling.set-block Renders all it's children as text and sets it as a template variable. This is useful for allowing one template to return multiple text portions, for instance an email template could set subject as a block and return the rest as body.
{set-block name=Space scope=global variable=text}
{$item} - {$item2}
{/set-block}
append-block Similar to set-block but will make the variable an array where each append-block adds an item.
{append-block scope=global variable=extra_header_data}
<script language=jscript src={"/extension/xmleditor/dhtml/ezeditor.js"|ezroot}></script>
<link rel="stylesheet" type="text/css" href={"/extension/xmleditor/dhtml/toolbar.css"|ezroot}>
{/append-block}
run-once Makes sure that the block is run only once.
{run-once}
<p>This appears only one time</p>
{/run-once}
Definition at line eztemplateblockfunction.php. Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exponential Copyright © 1998 - 2026 7x