limit subnode class type

Author Message

Jacek S

Monday 01 August 2005 2:56:07 pm

How could I restrict subnodes type for node containing object of particular class?
For example:
I would create class that represent folder containing articles. Everythings goes fine, I create folder class, add datafileds to it. But i dont find any place where i could define, that this class could contains only articles as its childs(subnodes). So, when I(and any of my users) create content, i have abbility to add object of any class as subnode for that folder.
Is there any method to solve this problem? How do you get around this?

David Eriksson

Tuesday 02 August 2005 12:36:06 am

You could set permissions so that no one is allowed to create anything but articles in that subtree.

Admin will always be able to create anything though, since he or she has full rights to everything.

Also remember that permissions "add up", so if you have already given the user permissions to create anything in a parent folder to your node, it won't work.

/David

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.