Web Site Toolbar: limit classes for some sections

Author Message

Albe Terra

Wednesday 30 July 2008 6:43:03 am

Hi!
I have a website with a section called Archive. I need to force users to create content here belonging only to one particular Content Class.

How can I customize the Web Site Toolbar? I need to force users to create instances only of this class, so that in the dropdown menu of the toolbar, they'll see only this class.

How can I do this?

Thanks

André R.

Wednesday 30 July 2008 8:23:37 am

Only give the user rights to crate 'someclass' as child of the Archive class using the policy system.

http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/access_control

It would be similar to some of the policies for editors:
content create Class( Blog post ) , ParentClass( Blog )

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

Albe Terra

Wednesday 30 July 2008 12:02:39 pm

Thank you very much!
That is what I was looking for!

Thanks again, Albe

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

Main resources:

Total runtime1.0337 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.0061 590.3516152.6406
Module start 'layout' 0.00610.0027 742.992239.4766
Module start 'content' 0.00881.0233 782.4688533.7109
Module end 'content' 1.03200.0017 1,316.17978.1250
Script end 1.0337  1,324.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2926160.0002
Check MTime0.00120.1152160.0001
Mysql Total
Database connection0.00140.137410.0014
Mysqli_queries0.991195.8783570.0174
Looping result0.00060.0538550.0000
Template Total1.004897.220.5024
Template load0.00260.252520.0013
Template processing1.002196.941720.5011
Template load and register function0.00010.014410.0001
states
state_id_array0.00100.094010.0010
state_identifier_array0.00090.084020.0004
Override
Cache load0.00160.1548180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.046120.0002
Fetch class attribute name0.00090.085340.0002
XML
Image XML parsing0.00050.046820.0002
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00080.0728170.0000
String conversion0.00000.000640.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs