drop down menu for categories

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2006, 03:33 AM
New Pligger
 
Join Date: Oct 2006
Posts: 19
I am trying to put a drop down menu in the header for the various categories. I have figured out how to used the existing code for dropdown menu for profile and admin,

<a href="{$my_pligg_base}/admin_categories.php">{#PLIGG_Visual_Header_AdminP anel_2#}</a>

my question is to how do i address the categories as defined in the system so that I do not have to hard code the address and name but use system definitions as used in the above code.

Thanks for you help on this..All help to a learning newbie would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-08-2006, 10:10 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
{section name=nr loop=$categorylist}
{$cat_url}{$categorylist[nr].category_safe_name}
{$categorylist[nr].category_name}
{*({$categorylist[nr].count})*}
{/section}

... will loop through the existing categories and display the url and the name of the category.
Reply With Quote
  #3 (permalink)  
Old 12-08-2006, 01:28 PM
New Pligger
 
Join Date: Oct 2006
Posts: 19
WOW, you really must know your code, I tried it and it worked perfectly. Thanks.

now a further detail, is there a way for code it so that it picks up the colors of the categories (in Mollio-Beat) and place it as a background color on each specific choice?

Thanks in advance.
Reply With Quote
  #4 (permalink)  
Old 12-10-2006, 03:08 PM
Constant Pligger
 
Join Date: Feb 2006
Posts: 101
Nice! Would it be possible to have a dropdown box for tags as well with the number of stories with each tag after each tag.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message on drop down menu for category? gjrb29 Questions and Comments 2 04-28-2009 11:42 AM
template page drop list won't populate greeneyed_itgirl Questions and Comments 1 02-11-2009 09:31 AM
How to get a dropdown menu for subcategories ? jedimaster Questions and Comments 3 04-04-2008 05:28 PM
Category Drop Down Menu Not Working In Submit page raj Questions and Comments 0 10-09-2007 04:01 AM
problem/reporting drop menu appears black Pentarix Questions and Comments 3 01-08-2006 05:33 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development