Limit which classes can be sub items

Author Message

Hal Gatewood

Thursday 24 September 2009 1:47:58 pm

Can you limit the items in the select box based on the current class you are in?

For example: I have an article class and I only want to be able to add other articles as sub items of this object, everything else is hidden.

Thanks for any help!

Bruce Morrison

Thursday 24 September 2009 5:24:22 pm

Hi Hal

You typically do this with permissions. Content editors should belong to a role that is restricted in what content classes can be created where (amongst other things).

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Hal Gatewood

Monday 28 September 2009 7:59:49 am

Thanks Bruce!

For others interested in this topic more information can be found here:

http://ez.no/developer/articles/section_segmentation_and_user_permissions_part_2_of_2/roles_and_policies

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 30 2025 22:25:53
Script start
Timing: Jan 30 2025 22:25:53
Module start 'layout'
Timing: Jan 30 2025 22:25:53
Module start 'content'
Timing: Jan 30 2025 22:25:53
Module end 'content'
Timing: Jan 30 2025 22:25:53
Script end

Main resources:

Total runtime0.0241 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2578151.2266
Module start 'layout' 0.00500.0034 739.4844220.7188
Module start 'content' 0.00840.0138 960.2031997.8047
Module end 'content' 0.02220.0019 1,958.007833.9922
Script end 0.0240  1,992.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.0826140.0002
Check MTime0.00103.9857140.0001
Mysql Total
Database connection0.00104.184810.0010
Mysqli_queries0.00187.655330.0006
Looping result0.00000.045610.0000
Template Total0.00145.710.0014
Template load0.00104.160110.0010
Template processing0.00041.545510.0004
Override
Cache load0.00072.729510.0007
General
dbfile0.00166.597280.0002
String conversion0.00000.025840.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