Developer forum

Forum » Templates » Productlist

Reply
Hi!

How can you access the variable Products.LoopModx in an xslt template?

Is this possible?

I want to test if LoopMod3 is 0 and then print a <br />

Best regards,

P

Replies

 
Reply
Hi,

You have to use
<xsl:if test="position() mod 3 = 0'><xsl:comment>do something</xsl:comment></xsl:if>

nuno

 

You must be logged in to post in the forum