Roles and list of classes in the contextual menu

Author Message

Pascal France

Friday 30 April 2010 4:13:20 pm

Hi,

When we define a role which restricts the classes that can be used, the drop down menu in the Sub-elements frame takes into account only these classes.

But the list of the classes in the contextual menu continues to present all the classes available on the system.

Is not there any way that the contextual menu also takes into account only classes defined by the role?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Jérôme Vieilledent

Saturday 01 May 2010 2:32:52 am

Hi Pascal

Unfortunately this is not currently possible :(. I just checked in design/admin2/templates/contentstructuremenu/content_structure_menu_dynamic.tpl and it actually just excludes some content classes. Besides, it seems that (undocumented) fetch function - class/list_by_groups - used in that template to list possible classes does not check security policies (eZClassFunctionCollection::fetchClassListByGroups()).

This would be really nice to get that feature IMHO :). Would you mind add a new enhancement issue on issues.ez.no ?

Pascal France

Saturday 01 May 2010 6:26:28 am

Hi Jérôme,

It's done.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Jérôme Vieilledent

Saturday 01 May 2010 7:02:22 am

Thank you Pascal ! :)

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 29 2025 23:47:46
Script start
Timing: Jan 29 2025 23:47:46
Module start 'layout'
Timing: Jan 29 2025 23:47:46
Module start 'content'
Timing: Jan 29 2025 23:47:46
Module end 'content'
Timing: Jan 29 2025 23:47:46
Script end

Main resources:

Total runtime0.0145 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.0053 588.2734151.2266
Module start 'layout' 0.00530.0028 739.500036.6953
Module start 'content' 0.00810.0046 776.195390.3750
Module end 'content' 0.01280.0017 866.570333.9922
Script end 0.0144  900.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.3173140.0002
Check MTime0.00106.9978140.0001
Mysql Total
Database connection0.00106.864310.0010
Mysqli_queries0.002214.898930.0007
Looping result0.00000.090710.0000
Template Total0.00138.910.0013
Template load0.00106.597210.0010
Template processing0.00032.309510.0003
Override
Cache load0.00064.093210.0006
General
dbfile0.00021.511780.0000
String conversion0.00000.056040.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