boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drop list for categories

 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
drfredc



Joined: 15 Mar 2004
Posts: 3

PostPosted: Wed Mar 31, 2004 6:15 pm    Post subject: Drop list for categories Reply with quote

I've got a blog for a youth soccer club that has 12 boys and 12 girl teams. I'd like to be able to provide a category for each team. However, displaying all 24 team categories would run off the screen. I'd like a way to change the template so that I can have two drop down lists of categories (one drop down for boys and another for the girls), not just one long list. Suggestions?
_________________
Always

Fred C
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 301
Location: Oslo, Norway

PostPosted: Fri Apr 02, 2004 8:13 am    Post subject: Reply with quote

This is cut and pasted from the readme file:

<?php dropdown_cats() ?>
this is a special tag, meant to be used in the template, but outside of the b2 loop. it will display a list of <option name="x">category-name</option>, where x is the number of the category and category-name is the name of it.

Parameters:
0 or 1, depending if you want to have an option to display all categories (default is 1)
text to display for the option to show all categories (default is "All")

you can use it like this:

<form action="<?php echo $PHP_SELF ?>" method="get">
<?php dropdown_cats() ?>
<input type="submit" name="submit" value="view" />
</form>
_________________
Sigg3 dot net - because you're worth it!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group