Bereichsgrafik
Aus eZ Wiki
Entwurf
Diese Seite muss vervollständigt werden. Für Diskussionen und Rechercheergebnisse kann auch die Diskussionsseite genutzt werden.
{* Kopfbild liegt entweder unterhalb des Artikel, oder wird aus dem Pfad der ancestors ermittelt *}
{def $currentNode = fetch('content', 'node', hash('node_id', $module_result.content_info.node_id))}
{def $ancestorOrSelf = $currentNode.path|reverse|prepend($currentNode)}
{foreach $ancestorOrSelf as $reverseNode}
{def $children=fetch('content', 'list', hash('parent_node_id', $reverseNode.node_id, 'depth', 1,'class_filter_type', 'include',
'class_filter_array', array( 'headerimage' ))) }
{if gt($children|count,0)}
{foreach $children as $child}
{$child.name|wash} <br />
{attribute_view_gui attribute=$child.data_map.image image_class='large'}
{/foreach}
{break}
{/if}
{/foreach}
Etwas eleganter geht es auch:
DAS FUNKTIONIERT (noch) NICHT
{* Kopfbild liegt entweder unterhalb des Artikel, oder wird aus dem Pfad der ancestors ermittelt *}
{def $currentNode = fetch('content', 'node', hash('node_id', $module_result.content_info.node_id))}
{def $ancestorOrSelf = $currentNode.path|reverse|prepend($currentNode)}
{def $children=fetch('content', 'list', hash('parent_node_id', $ancestorOrSelf.node_id, 'depth', 1,'class_filter_type', 'include',
'class_filter_array', array( 'headerimage' ))) }
{if gt($children|count,0)}
{foreach $children as $child}
{$child.name|wash} <br />
{attribute_view_gui attribute=$child.data_map.image image_class='large'}
{/foreach}
{break}
{/if}
- Weblinks
