Templates

Can I have my categories in a drop-down menu?

Scenario:
"I have a lot of categories so my category list is getting a bit long and is taking up too much space on my page. Therefore I would like the categories to be displayed in a drop-down menu."

Solution:
Edit the template you are using to display your category list as follows:

Category list header:
<select onchange="document.location=this.value"><br />
<option value="">- choose category -</option><br />
<option value="<%blogurl%>">All</option>


Category list item:
<option value="<%catlink%>"><%catname%></option>


Category list footer:
</select>


Original forum thread (thanks, karma!):
http://nucleuscms.org/forum/viewtopic.php?t=677
section: Templates | submitted by Leng on 2007.Mar.17 | 12574 views

item rate
Total votes: 2 - Rating: 10.00

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10