Admin interface dropdown menu config

Author Message

Jeremy B.

Tuesday 21 July 2009 3:21:18 am

Hi there,

I would like to know if there is a way to configure the dropdown menu in the administration interface, specifically the "Create here..." item.

For instance, if I have a structure like :

- Homepage
|------ Masterpage 1
|------------- Article 1
|------------- Article 2
|------ Masterpage 2
|------------- Article 1

I want to limit the classes available for creation :

- I want the user to only create a "masterpage" type in subtree "Homepage"
- I want the user to only create an "article" type in a "Masterpage" subtree
- I don't want the user to create an "article" type under "Homepage"

Is there a way to do this ?

Thanks for your time ! :)

Max Keil

Tuesday 21 July 2009 3:47:54 pm

Hi Jeremy,

create an new user group for your editors and specify the roles and policies like you described in your post.

Class masterpage -> ParentNode 2
Class article -> ParentClass masterpage

Assign your new role to the editors user group. That's it!

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Jeremy B.

Thursday 23 July 2009 11:55:58 pm

Thanks Max for your answer :)

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

Main resources:

Total runtime0.5983 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.9141152.6250
Module start 'layout' 0.00870.0061 740.539139.4609
Module start 'content' 0.01470.5820 780.0000533.0469
Module end 'content' 0.59670.0015 1,313.046912.1563
Script end 0.5982  1,325.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6095160.0002
Check MTime0.00140.2308160.0001
Mysql Total
Database connection0.00130.222310.0013
Mysqli_queries0.542390.6400570.0095
Looping result0.00060.1004550.0000
Template Total0.559293.520.2796
Template load0.00200.339520.0010
Template processing0.557193.125920.2786
Template load and register function0.00040.074710.0004
states
state_id_array0.00100.159010.0010
state_identifier_array0.00080.132420.0004
Override
Cache load0.00170.2779220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.096420.0003
Fetch class attribute name0.00120.203140.0003
XML
Image XML parsing0.00070.109520.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00090.1438160.0001
String conversion0.00000.001640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs