Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by JörnNettingsmeier:
http://wiki.apache.org/lenya/HowToDefaultPublicationUsefulChanges

------------------------------------------------------------------------------
   * [#navtitle Hand the Navigation Title through to the browser]
   * [#checkout Allow users to override checkouts by other users]
   * [#acauth Only allow admins to change AC Auth values for pages]
+  * [#wfshortcut Allow users with both "edit" and "review" roles to publish a 
page in one step]
  
  ----
  
@@ -413, +414 @@

  
  Now, whenever a none admin tries to use the AC Auth page they will be 
prevented from doing so.
  
+ 
+ [[Anchor(wfshortcut)]]
+ == Allow users with both "edit" and "review" roles to publish a page in one 
step ==
+ 
+ Often, users do not need the 2-step workflow between editor and reviewer. You 
can assign both roles to a user, and then allow her/him to publish in one step, 
going from state "authoring" directly to state "live". To do this, add the 
following snippet to <yourpub>/config/workflow/workflow.xml:
+ {{{
+ <transition source="authoring" destination="live">
+   <event id="publish"/>
+   <condition 
class="org.apache.lenya.cms.workflow.RoleCondition">edit</condition>
+   <condition 
class="org.apache.lenya.cms.workflow.RoleCondition">review</condition>
+   <assign variable="is_live" value="true"/>
+ </transition>
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to