Flowing list items into two columns

2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 23, 2008   (RSS)

By chassa2556 - September 22, 2008

Hi

I have a number of list items that I would like to flow into 2 or maybe 3 columns so they don't make a huge vertical scroll. Basically there are probably as much as 50 list items of shows that would then click through to the detail page. I would like the listings to flow into the columns. I would also like them to sort by the date. Can you tell me how to do this please? Thanks...

Re: [chassa2556] Flowing list items into two columns

By Dave - September 23, 2008

Hi Charles,

The first step is to figure out how to do it in HTML. Then figure out the exact HTML that you want inserted where. Once you know that, you can do it with CMS Builder.

For example, if each item was in a table cell you could have 3 columns by inserting a closing and opening TR every 3 cells. Like this:

<?php $maxCols=3; if (@++$count % $maxCols == 0): ? >
</tr><tr>
<?php endif ?>

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com