📚 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 / eZTemplateSectionFunction
|
Detailed DescriptionAdvanced block handling in templates using function "section".This class can be used in several different ways. It's primary use is for display an array of elements using the loop parameter. The array is iterated and the text of all the children are appended for each element. The current key and item is set in the namespace provided by the parameter name. If the paremeter sequence is supplied and it is an array it will be iterated and each element will be set in the variable sequence, when the end of the sequence is reached it is restarted.
// Example of template code
{* Loop 5 times *}
{section loop=5}
{$item}
{/section}
Add these: {section name=adsfsdf sequence=array(234,234,23,4,234) loop=.. max=2 offset=0 exclude} {section-exclude check=id using=array(1,2,5)} {section-exclude check=array(class,id) using=array(1,2,5)} {section-include check=class_id using=array(1,2,5)} asdfasdf {delimiter}asdfasdf{/delimiter} {/section} {$module.features.list(5,array(2,5))} {section loop=... max=10 offset=2} {/section}
Definition at line eztemplatesectionfunction.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