Hi,
I'm looking to programatically insert a line break after 2 products have been displayed. Reason for this is to have 2 products displayed side by side. I've achieved this in pure CSS however if too much text is entered in the product description it breaks the flow.
Question is, is there any way to count 2 products then insert a clearboth div for example. This can easily be achieved in ASP/PHP/CFM, however I am unsure as to how actinic loops through each product to display the output HTML.
I'm looking for something like
<%For i = 0 to ubound(arrayData(2,0))%>
Product info goes here
<%if i mod 2 = 0 then%>
<div class="clearboth"> </div>
<%end if%>
<%next%>
Is this possible in Actinic????
Thanks
Andy
I'm looking to programatically insert a line break after 2 products have been displayed. Reason for this is to have 2 products displayed side by side. I've achieved this in pure CSS however if too much text is entered in the product description it breaks the flow.
Question is, is there any way to count 2 products then insert a clearboth div for example. This can easily be achieved in ASP/PHP/CFM, however I am unsure as to how actinic loops through each product to display the output HTML.
I'm looking for something like
<%For i = 0 to ubound(arrayData(2,0))%>
Product info goes here
<%if i mod 2 = 0 then%>
<div class="clearboth"> </div>
<%end if%>
<%next%>
Is this possible in Actinic????
Thanks
Andy
Comment