Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Editor's Categories Array

Quote Reply
Editor's Categories Array
How can I fill an array with all the category ID's an editor is responsible for?

My understanding of table->(Editors) is that it shows a record for each unique set of permissions assigned to an editor, not each category.

This means one record in 'Editors' for a particular editor, could equate to a category which is a child of another category the editor is responsible for, or a category which is outside the set of other categories in the table.

One solution would be to take the category id of every record in 'editors' belonging to one editor, then collect the cateogry id of every subdirectory of those categories, then remove duplicate category id's. Make sense? How do I do it?

Of course this will only work as long you don't take one of the sub-categories away from an editor. EG the editor is assigned the "Regional" category and all of its subcategories, and you remove this editor from only "Regional/Canada/Ontario". How does this show in the editors table?



Crazy


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

sooke: May 15, 2002, 10:35 PM