Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-29 17:34:54

dreamer
Member
Registered: 2007-06-08
Posts: 242

how to list blog categories in 2 columns rather than 1

how does one go about listing categories across 2 columns?

for example, if you go to this site and look at the sidebar; http://stylizedweb.com/ , you’ll see that the categories are listed across 2 columns. it starts in the first column and then continues on the 2nd.

Offline

#2 2008-06-29 17:47:42

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: how to list blog categories in 2 columns rather than 1

You can limit the categories shown by category_list and use the tag as often as you need it.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2008-06-29 17:53:05

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: how to list blog categories in 2 columns rather than 1

category_list is your friend. Its easy to exclude categories and sections.

Edit: Uli was faster than me!

Last edited by jstubbs (2008-06-29 17:53:30)

Offline

#4 2008-06-29 17:59:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: how to list blog categories in 2 columns rather than 1

Can you use CSS trickery? Make a div to hold the output of <txp:category_list /> and set the list items to display:inline with suitable padding/margin. Then set the width of the div to hold two columns’ worth of category titles. As long as your titles aren’t too long it should line up nicely… I think.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2008-06-29 21:02:49

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: how to list blog categories in 2 columns rather than 1

Actually Stef, looking at the source, I think that is exactly what the example site has done. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB