View previous topic :: View next topic |
Author |
Message |
scd1
Joined: 11 Jul 2004 Posts: 8
|
Posted: Mon Aug 23, 2004 3:21 am Post subject: Category and Archives in a drop down menu |
|
|
Is it possible to have the categories and archives in their own drop down menus? If it is, how is it done?
I noticed in b2sidebar.php the code: Code: | <?php dropdown_categories(); ?> |
so I know there's a way to have a drop down menu for the categories, but unfortunately the categories don't link to anything (you can click on the menu, but it won't go anywhere).
Any suggestions would be appreciated. _________________ -Scott |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 616 Location: Oslo, Norway
|
Posted: Mon Aug 23, 2004 10:10 am Post subject: |
|
|
Copied from the readme:
Quote: | <?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:
Code: | <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! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
scd1
Joined: 11 Jul 2004 Posts: 8
|
Posted: Tue Aug 24, 2004 2:27 am Post subject: Thanks... |
|
|
Thanks for that...I looked through the readme too - I must have skipped over that part. Is there a way to do the same thing for the archive list? (If this is in the readme too, I'll be mad b/c I know I went through it all). _________________ -Scott |
|
Back to top |
|
 |
|