I’m trying to display all my categories in 2 columns.
Everything is working fine until I change
{if count == "1"}in the first column. I’d like to display 12 categories there and the rest in the second column. Any tips?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 22, 2008 5:01am
Subscribe [3]#1 / Jan 22, 2008 5:01am
I’m trying to display all my categories in 2 columns.
Everything is working fine until I change
{if count == "1"}in the first column. I’d like to display 12 categories there and the rest in the second column. Any tips?
#2 / Jan 22, 2008 6:15pm
How about…
#3 / Apr 28, 2008 2:34pm
Hi, I was looking to do the same thing and noticed when I used the suggested code above, there were a few errors in my output. Anyway, I made a couple of modifications and now it is doing exactly what I want…thanks for the help!!
Here is what I used:
<table width=“100%” cellpadding=“10”>
<tr><td width=“50%” valign=“top”>
{exp:weblog:categories weblog="events" style="linear"}
{if count <= 10}
{category_name}
{/if}
{/exp:weblog:categories}
</td><td valign=“top”>
{exp:weblog:categories weblog="events" style="linear"}
{if count > 10}
{category_name}
{/if}
{/exp:weblog:categories}
</td></tr>
</table>