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:
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 ifHowever, 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
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
Can you provide an example of how you set up the mailarc demo?
Many thanks