Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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