List Info

Thread: DO NOT REPLY Publish menu item always active




DO NOT REPLY Publish menu item always active
user name
2006-10-27 08:46:40
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40
670>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40670





------- Additional Comments From nettingsapache.org  2006-10-27 01:46 -------
(In reply to comment #4)
> > additionally, i would like to see a workflow
shortcut:
> > if a user has both edit and review roles for a
given document, it should be
> > possible to bypass the submission step and publish
directly. in that case, the
> > publish button needs to be active as well. i once
tried to implement that but
> > eventually ran into a brick wall...
> 
> Just add the transition to the workflow configuration
file, that should be
> sufficient.

for the record, i added this to
<mypub>/config/workflow/workflow.xml, and it
seems to work:
        
<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>



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )