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.

eZ debug

Timing: Jan 19 2025 04:21:36
Script start
Timing: Jan 19 2025 04:21:36
Module start 'layout'
Timing: Jan 19 2025 04:21:36
Module start 'content'
Timing: Jan 19 2025 04:21:37
Module end 'content'
Timing: Jan 19 2025 04:21:37
Script end

Main resources:

Total runtime0.6149 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1563152.6250
Module start 'layout' 0.00650.0034 741.781339.4453
Module start 'content' 0.01000.6037 781.2266485.2031
Module end 'content' 0.61360.0012 1,266.42978.1641
Script end 0.6148  1,274.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5867160.0002
Check MTime0.00160.2527160.0001
Mysql Total
Database connection0.00110.171410.0011
Mysqli_queries0.575393.5614540.0107
Looping result0.00040.0717520.0000
Template Total0.581294.520.2906
Template load0.00240.392120.0012
Template processing0.578894.124920.2894
Template load and register function0.00020.024510.0002
states
state_id_array0.00150.237610.0015
state_identifier_array0.00090.148220.0005
Override
Cache load0.00200.3233110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.143420.0004
Fetch class attribute name0.00090.150320.0005
XML
Image XML parsing0.00020.033820.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00060.0986100.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs