Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Displaying forums in four columns

Quote Reply
Displaying forums in four columns
I'm trying to modify the category_list template to show forums in four columns below their parent category (similar to the mailarc demo at http://www.gossamer-threads.com/lists/).
The basic logic is:
Code:
if it's category do a row spanning 4 columns
else it's a forum
if prev was cat then this is the first forum
start a new row and a new column
else it's another forum
if it's the 4th column
close the previous row and then start a new column
else
just start another column
end if
end if
end if
However, I can't figure out how to determine whether the current forum is the 4th, 8th, 16th etc, in the category (see the red code). I can't do a simple modulo on row_num because there's no way of knowing how many parent categories there were and the row_num will increment regardless of whether it's a category or forum.

Can you provide an example of how you set up the mailarc demo?

Many thanks
Subject Author Views Date
Thread Displaying forums in four columns paulj 3198 Jul 6, 2004, 6:35 AM
Thread Re: [paulj] Displaying forums in four columns
Alex 3109 Jul 8, 2004, 11:49 AM
Post Re: [Alex] Displaying forums in four columns
paulj 3099 Jul 8, 2004, 5:06 PM