Wednesday 25 February 2004 1:40:46 pm
Actually, you should be able to replicate the pattern with the <i>delimiter</i> functionality of eZ 3. An example is available at http://ez.no/ez_publish/documentation/customization/custom_design/examples/common_template_issues/complex_list But, a quick (and untested) run-down would be something along the lines of:
{let name=Child children=fetch('content','tree',hash(parent_node_id,23,))}
{section loop=$:children}
[YOUR ARTICLE INCLUDE CODE]
{delimiter modulo=3} [YOUR ADVERTISEMENT INCLUDE CODE] {/delimiter}
{/section}
{/let}
The important part is <i>{delimiter modulo=3} [YOUR ADVERTISEMENT INCLUDE CODE] {/delimiter}</i> which will insert your advertisement on every third (in this case) iteration through the loop. So, you could tweak it to match the pattern you want it to follow. More examples can be found at http://ez.no/ez_publish/documentation/development/libraries/ez_template/functions/section Hope this helps, Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|