Gossamer Forum
Home : Products : Links 2.0 : Customization :

Removing 'Category' in the 'Add Link' -

Quote Reply
Removing 'Category' in the 'Add Link' -
Dear all,

In Add Link, my users must choose a category. But since I have over 200 categories, I don't want this field to be compulsory.

I want to leave out the Category-field in the Add Link. If I remove Category from links.def I get all kinds of errors. If I just remove the HTML-fields for Category, it still wants to have a choice.

Any suggestions?
Quote Reply
Re: [voelspriet] Removing 'Category' in the 'Add Link' - In reply to
Try removing it, and then adding a hidden value for it, which just goes to a default category. Then, when you goto validate it, you can choose the appropriate category for it.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [voelspriet] Removing 'Category' in the 'Add Link' - In reply to
How elegant! Thanks.
Quote Reply
Re: [voelspriet] Removing 'Category' in the 'Add Link' - In reply to
Why not just set $db_single_category to 1 in links.cfg? That way the current category is automatically used.

If you remove the link to add.cgi from the main menu on your "home" page, users won't be able to add links from outside of a category.