Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Category Dropdown Box

Quote Reply
Category Dropdown Box
Hi,

I want to control which categories that are displayed in the category dropdosn box on the add page. I want to display a certain toplevel category and all of its sub-categries. How can I do that?

Cheers
Root
Quote Reply
Re: [root777] Category Dropdown Box In reply to
You'll have to create a global to return the list of categories you want in the select list and change the add/modify form to use it. However, this doesn't prevent people from adding links into other categories. You'll need to write a plugin that hooks into the add/modify sections of the code to make that check.

Adrian
Quote Reply
Re: [brewt] Category Dropdown Box In reply to
I'm a little unsure making a global like that. Can anyone show me how to do this?