Forums / Setup & design / allow only specific subitems in container

allow only specific subitems in container

Author Message

Claudia Kosny

Thursday 15 June 2006 8:01:57 am

Hi there,

is there a way to specify which subitems can be created in a container?
Example: While the user should be able to create an folder directly under the root node, he should not have the possibility to create an folder within another folder. Or, another example, the user should be able to create products only in a specific folder identified by its node id, nowhere else.
I know that I can simulate something roughly similar on the user level using roles. Is there a way to do this on the object level, so that when I create a folder I can specify which type of objects can go in there?

I am using ezpublish 3.8.

Thanks

Claudia

André R.

Thursday 15 June 2006 9:20:48 am

The answer would be "Roles and policies".
And some examples would be:

content  	create  	Class( Artikkel, Gallery ) , ParentClass( Folder )
content 	create 		Class( Flash , Quicktime , Windows media , Real video , Image ) , ParentClass(  Gallery )
content  	create  	Node( Root ) , Class( Folder )

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

Jeroen Sangers

Thursday 15 June 2006 9:40:16 am

Related to this: is there also a way to limit the number of classes shown in the dropdown list in the admin interface to only those classes that can be used?

André R.

Thursday 15 June 2006 9:58:35 am

Since you probably log in as an admin, you have full access to all functions and therefore all classes.

My previous answer was meant for the editor policy's, or other roles that you might create.
Tuning what they have access to, and what content they can place where and under what.

You can do the same thing for the admin role if you like to, but then you’ll have to remove the rule that states that admins have access to anything.
Witch means you’ll have to make changes to the admin role every time you add content classes, extensions or siteaccesses.

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

liu spider

Thursday 15 June 2006 8:18:04 pm

play around with "Roles and polices" and read doc first

as mentioned, assign roles other than admin to those you want to restrict access

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

eZ debug

Timing: Jan 18 2025 11:08:44
Script start
Timing: Jan 18 2025 11:08:44
Module start 'content'
Timing: Jan 18 2025 11:08:45
Module end 'content'
Timing: Jan 18 2025 11:08:45
Script end

Main resources:

Total runtime0.8467 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.9609180.8125
Module start 'content' 0.00840.6950 769.7734647.3750
Module end 'content' 0.70340.1431 1,417.1484337.0547
Script end 0.8466  1,754.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5178210.0002
Check MTime0.00170.1975210.0001
Mysql Total
Database connection0.00090.104210.0009
Mysqli_queries0.767690.65922040.0038
Looping result0.00250.29492020.0000
Template Total0.816596.420.4082
Template load0.00210.246920.0010
Template processing0.814496.186220.4072
Template load and register function0.00020.026710.0002
states
state_id_array0.00100.113410.0010
state_identifier_array0.00070.086120.0004
Override
Cache load0.00180.2145290.0001
Sytem overhead
Fetch class attribute can translate value0.00190.228350.0004
Fetch class attribute name0.00210.253280.0003
XML
Image XML parsing0.00190.221650.0004
class_abstraction
Instantiating content class attribute0.00000.002090.0000
General
dbfile0.00340.4011400.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs