Specify list of available children classes for a container

Author Message

Maurizio Betti

Sunday 04 February 2007 4:27:40 am

Hello,

I'm desperatly looking for a method to specify a list of children classes available for a container class.

I would like, when an editor user is placed on a container class and he wants to create a new child node, to show him ONLY the children classes available for that specific type of container.

Any idea?

Thanks in adavnce for any answer/suggestion.

Best regards

Maurizio Betti
http://www.arsweb.it
http://www.hospes.it

André R.

Sunday 04 February 2007 4:52:34 am

This is done by limting the types of classes a editor user can create with that specefic container class as parent_class in user roles.

Example from Calendar in ezwebin on 3.9:

content, create, class( event ), parent_class ( event_calendar )

or forum:

content, create, class( forum_topic ), parent_class ( forum )
content, create, class( forum_reply ), parent_class ( forum_topic )

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Maurizio Betti

Sunday 04 February 2007 5:56:07 am

Great! I'll try immediatly!!!

Many thanks

Maurizio Betti
http://www.arsweb.it
http://www.hospes.it

André R.

Sunday 04 February 2007 6:11:04 am

Remember that you'll have to remove any general create rights first for editor role, like:

content *
or
content create *

(If you for some reason have that.)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 15:16:43
Script start
Timing: Jan 18 2025 15:16:43
Module start 'layout'
Timing: Jan 18 2025 15:16:43
Module start 'content'
Timing: Jan 18 2025 15:16:43
Module end 'content'
Timing: Jan 18 2025 15:16:43
Script end

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2891152.6563
Module start 'layout' 0.00550.0030 741.945339.5078
Module start 'content' 0.00850.0053 781.453193.3984
Module end 'content' 0.01380.0020 874.851634.3047
Script end 0.0159  909.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.9175140.0002
Check MTime0.00116.9229140.0001
Mysql Total
Database connection0.00085.236010.0008
Mysqli_queries0.002918.025130.0010
Looping result0.00000.074810.0000
Template Total0.001710.610.0017
Template load0.00095.568310.0009
Template processing0.00084.953110.0008
Override
Cache load0.00063.929210.0006
General
dbfile0.00042.368080.0000
String conversion0.00000.056940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs