View previous topic :: View next topic |
Author |
Message |
drfredc
Joined: 15 Mar 2004 Posts: 3
|
Posted: Wed Mar 31, 2004 6:15 pm Post subject: Drop list for categories |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 301 Location: Oslo, Norway
|
Posted: Fri Apr 02, 2004 8:13 am Post subject: |
|
|
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 |
|
 |
|