In Actinic go to Advanced / Custom Properties and create a property FRAGCOLS
Go Design / Options / Site Defaults / Properties, click the "+" sign
and select FRAGCOLS. Set its value to 6 (for 6 columns, 4 for 4 , etc).
Edit Act_ProductBaody.html and loom for the block
Code: Select all
<script language=JavaScript>
<!-- (V11)
var currentcol = 0;
var colwidth = Math.floor(100 / CUSTOMVAR:NUMCOLS);
// -->
</script>
Code: Select all
<script language=JavaScript>
<!-- (V11)
var currentcol = 0;
var colwidth = Math.floor(100 / CUSTOMVAR:NUMCOLS);
var fragcols = CUSTOMVAR:FRAGCOLS;
var fragcolwidth = Math.floor(100 / fragcols);
function newrow(){
currentcol = fragcols;
}
// -->
</script>
number of fragments across than products.
Call this one (for Image and Title) DiffColsCatalogFragment_ImageAndTitle.html
Code: Select all
<!-- Different Column Count Catalog Page Fragment ImageAndTitle HTML begin -->
<script language=JavaScript>
<!-- (V11)
if ( currentcol++ == 0 ) document.write('<tr><td colspan=3><table border=0><tr>');
document.write('<td width="' + fragcolwidth + '%" valign=top>NNN');
// -->
</script>
<noscript><tr><td width="100%"></noscript>
<!-- START each fragment lives in this table - alter below to rearrange items -->
<table width="100%" cellspacing="5" cellpadding="1">
<tr>
<td width="100%" align="center">NETQUOTEVAR:FRAGMENTANCHORNETQUOTEVAR:BROCHURE_IMAGE</td>
</tr>
<tr>
<td width="100%" align="center"><h3>NETQUOTEVAR:BROCHURE_TITLE</h3></td>
</tr>
</table>
<!-- END each product lives in this table - alter above to rearrange items -->
</td>
<script language=JavaScript>
<!--
if ( currentcol >= fragcols )
{
document.write('</tr></table></td></tr>');
currentcol = 0;
}
// -->
</script>
<noscript></tr></noscript>
<!-- Different Column Count Catalog Page Fragment ImageAndTitle HTML end -->
Code: Select all
<!-- Different Column Count Catalog Page Fragment TextAndTitle HTML begin -->
<script language=JavaScript>
<!-- (V11)
if ( currentcol++ == 0 ) document.write('<tr><td colspan=3><table border=0><tr>');
document.write('<td width="' + colwidth + '%" valign=top>TTT');
// -->
</script>
<noscript><tr><td width="100%"></noscript>
<!-- START each fragment lives in this table - alter below to rearrange items -->
<table width="100%" cellspacing="5" cellpadding="1">
<tr>
<td width="100%">
NETQUOTEVAR:FRAGMENTANCHOR
<h3>NETQUOTEVAR:BROCHURE_TITLE</h3>
NETQUOTEVAR:BROCHURE_TEXT</td>
</tr>
</table>
<!-- END each product lives in this table - alter above to rearrange items -->
</td>
<script language=JavaScript>
<!--
if ( currentcol >= fragcols )
{
document.write('</tr></table></td></tr>');
currentcol = 0;
}
// -->
</script>
<noscript></tr></noscript>
<!-- Different Column Count Catalog Page Fragment TextAndTitle HTML end -->
That's it.
NOTE
If you have a final row of Fragments that is incomplete and you want the products
to start on a new row, then paste the following into the Description of the final fragment
Code: Select all
!!<<script language=JavaScript>newrow()</script>>!!
templates for these.