Go Back   Pligg Forum > Pligg Development > Pligg Templates
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2006, 01:33 AM
flyfisher flyfisher is offline
New Pligger
 
Join Date: Oct 2006
Posts: 21
Downloads: 9
Uploads: 0
Thanks: 6
Thanked 2 Times in 2 Posts
drop down menu for categories

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
Sponsored Links
  #2 (permalink)  
Old 12-08-2006, 08:10 AM
revolver revolver is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 232
Downloads: 5
Uploads: 0
Thanks: 56
Thanked 22 Times in 18 Posts
{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
The Following User Says Thank You to revolver For This Useful Post:
  #3 (permalink)  
Old 12-08-2006, 11:28 AM
flyfisher flyfisher is offline
New Pligger
 
Join Date: Oct 2006
Posts: 21
Downloads: 9
Uploads: 0
Thanks: 6
Thanked 2 Times in 2 Posts
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, 01:08 PM
gragland gragland is offline
Constant Pligger
 
Join Date: Feb 2006
Posts: 120
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 1 Time in 1 Post
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.
__________________
my pligg site: pickstation.com
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Allways show queued news in menu gamespel General Help 0 10-25-2006 06:56 PM
Anyone actually using Report a problem drop list? can8dn General Help 1 05-22-2006 01:55 PM
A few menu issues mskonfa Bug Report 1 03-31-2006 11:28 AM
change menu, title and others... yom23 Installation and Upgrade Help 3 02-26-2006 07:40 AM
problem/reporting drop menu appears black Pentarix Pligg Templates 3 01-08-2006 03:33 AM


LinkBacks Enabled by vBSEO 3.0.0