Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Drop-down menu for category

Quote Reply
Drop-down menu for category
Hi everyone,

What should I do if I want my category in a drop-down menu instead of showing all in page? I try to search "drop-down" in this forum and I can't find anything like this. Help me please. Thank you.

Quote Reply
Re: Drop-down menu for category In reply to
By default the categories are shown in a drop down list.

How many categories do you have?



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Drop-down menu for category In reply to
Thanks for your reply Pugdog. But I don't understand what do you mean by "By default it is drop down menu". By default when after I create category and build page, Links create all my page and show all the category name in the main page. Please tell me what do you mean?

Quote Reply
Re: Drop-down menu for category In reply to
You mean not have a listing on the main page?

You'd have to use a combination of the mod I just posted for getting the top categories and then use some of the ideas at the bottom of the modify.cgi to turn them into a drop-down select box, and then change the build_home_page routine to build differently than it does now....

Basically, if you know what you are doing it's a few good hours, if you don't, it's probably a few days. I don't know anyone who's asked of this before.

The problem is that on many sites there are just too many categories to do anything like that. Beyond 10 or 20 it's a pain, and beyond 50 it's down right annoying, and when you have 3,000 it's quite useless and makes the downloads incredibly long.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Drop-down menu for category In reply to
Thanks PugDog,

I just have about 10 main category. That's why I want to use that. Can you please give me more detail? Thank you.