ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display Categories in 2 Columns with count. EE 1.6.1

January 22, 2008 5:01am

Subscribe [3]
  • #1 / Jan 22, 2008 5:01am

    [/root.]

    29 posts

    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

    sapid

    27 posts

    How about…

    
    									
  • #3 / Apr 28, 2008 2:34pm

    stephlivsey

    16 posts

    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>

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases