Forums / Setup & design / Limit class choice in admin

Limit class choice in admin

Author Message

Jérôme Vieilledent

Friday 12 October 2007 8:34:07 am

Hello,

Il would like to know if it was possible to limit the choice of classes for creation, depending on the parent object type, or the node...
I saw in the admin that when you're on the user accounts tab, the system forces you to create only user groups or users. Is it possible to do the same in the content tree ?

Thanks :-)

Mark Marsiglio

Friday 12 October 2007 9:03:47 am

You can do this with the roles and policies. The only caveat is that you cannot change it for admin level users because their permissions are set to all access.

We do this for our editors by setting parent node based permissions. So, users can create an Event only if the parent class is Calendar. What happens is we end up with a limited list of class choices that are the containers, and then separate lists of choices depending on the type of container the user to attempting to add a sub-item to.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Marsiglio

Friday 12 October 2007 9:06:06 am

Our policies look like this:
content create Class( FAQ Question ) , ParentClass( FAQ List )
content create Class( Event ) , ParentClass( Calendar )
content create Class( Forum topic ) , ParentClass( Forum )
content create Class( Forum reply ) , ParentClass( Forum topic )

The editing rights are much more basic, but the content create module allows very fine control. We then apply these rules with subtree limitations to control where different user groups can create new content.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Jérôme Vieilledent

Friday 12 October 2007 9:22:12 am

Thanks Mark, now I understand :-)