Developer forum

Forum » Templates » Problem with LoopMod3

Problem with LoopMod3


Reply
Hi!

I have a loop where I write information about products in a certain group. The layout is table based and I want to change row every third product.

<!--@If Defined(Products.LoopMod3)-->

</tr><tr>


 

<!--@EndIf(Products.LoopMod3)-->

But this If is always true.

When I write

<!--@If Defined([Products].LoopMod3)-->

</tr><tr>


 

<!--@EndIf([Products].LoopMod3)-->

The check always becomes false.


Replies

 
Reply
Hi,

You can't. LoopMod3 is will always be defined, with values. It's 0 every 3 items. Do you really need to develop a table based design with 3 columns by X rows? Would be easier to do it with <li> or <div>'s and create a class with the LoopMod3 tag, so your settings may differ.

Nuno

 

You must be logged in to post in the forum