All pastes #919127 Raw Edit

Unnamed

public text v1 · immutable
#919127 ·published 2008-02-26 16:39 UTC
rendered paste body
<xar:set name="cont">0</xar:set>
<xar:foreach in="$ddfields" key="$key" value="$ddfield">
	<pre><xar:set name="foo">print_r($key)</xar:set></pre>
	<pre><xar:set name="foo">print_r($ddfield)</xar:set></pre>
	<xar:if condition="($cont==0) || (($cont % $articles_per_page)==0 )">
		<xar:set name="cont2">($cont / $articles_per_page) +1</xar:set>
		<div id="pagina_#$cont2#" class="tipo_pagina">
	</xar:if>

Here goes <xar:module main="false" module="articles" type="user" func="display" aid="$key" layout="$current_page['name']" /> but i didn't put it yet

        <xar:set name="cont">$cont+1</xar:set>
	<xar:if condition="($cont % $articles_per_page)==0 || (count($articles)==$cont)">
		</div>
	</xar:if>
</xar:foreach>