Policy rule

Author Message

Roberto Sacchi

Tuesday 10 March 2009 2:58:56 pm

I would like to create a policy rule like that:
users can edit an object but they can only save a draft, not publish the modified content.
(another rule could be "create but not publish")

I don't find that function in the admin panel.
Maybe I miss it.

Thanks

Rob

Jean-Yves Zinsou

Tuesday 10 March 2009 3:50:09 pm

Hi there,
in fact, it is not the way it supposed to be done.

You must allow users to create content, and then define a workflow with an event /approve and a trigger "before publish" .

When they will click on "publish" the element will be submitted to a group of approvers.
After an approver approves (ha ha) the object will be really published on the site.

You can even define a set of users that can publish without approval needed.

Se here :
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/workflow_events/approve

Don't forget : you must properly define the schedule of the matching cronjobs...
Hope this helps

Have fun !
Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

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 31 2025 03:33:32
Script start
Timing: Jan 31 2025 03:33:32
Module start 'layout'
Timing: Jan 31 2025 03:33:32
Module start 'content'
Timing: Jan 31 2025 03:33:32
Module end 'content'
Timing: Jan 31 2025 03:33:32
Script end

Main resources:

Total runtime0.0233 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.0052 588.0078151.1953
Module start 'layout' 0.00520.0042 739.2031220.6406
Module start 'content' 0.00930.0126 959.8438997.7578
Module end 'content' 0.02190.0014 1,957.601629.9922
Script end 0.0233  1,987.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.7179140.0002
Check MTime0.00114.5674140.0001
Mysql Total
Database connection0.00104.171310.0010
Mysqli_queries0.002711.443530.0009
Looping result0.00000.055310.0000
Template Total0.00104.410.0010
Template load0.00083.485610.0008
Template processing0.00020.870910.0002
Override
Cache load0.00062.394710.0006
General
dbfile0.00239.966780.0003
String conversion0.00000.033840.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