From: Alex McLintock <alex@OWAL.co.uk> - 2003-02-01 13:50:41
I'm using a slightly old slashcode (2.6 I think) and am trying to get
cheesy portal working as I desire.
The template for it had this
[% FOREACH portal = portals %][% portal.box %][% END %]
which just puts them all in one column. Presumably MULTICOL doesn't work in
I changed it to this which sort of works (see
[% x = 0 %]
[% FOREACH portal = portals ; x = x + 1; "</TD><TD>" IF (x mod 7) == 1 %]
[% portal.box %]
[% END %]
Can I strip from portals those portals which have nothing in them, and then
count them up so that I can choose the number of columns?
Available for java/perl/C++/web development in London, UK or nearby.
Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP