You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/27 10:54:29 UTC
[Lenya Wiki] Update of "HowToDefaultPublicationUsefulChanges" by JörnNettingsmeier
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: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org