Display workflow state?

ramper - December 10, 2008 - 17:58
Project:Workflow Fields
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Is it possible to display the workflow state on the full node? What I have in mind is for a publishing workflow as items move through stages such as Draft, Review and 'Published'. I know the workflow state can be displayed using 'Views'. But I was wondering if there's a way to make the workflow state appear on the published node. I can think of a roundabout way by creating a content taxonomy field for workflow state - but it would be nice to have it available as a cck field automatically.

P.S. If the workflow state can be displayed selectively only for certain states - such as 'Draft' and 'Review', but not for 'Published', that would be even more awesome - but that's asking for too much I guess :)

#1

kratib - December 10, 2008 - 22:00
Status:active» won't fix

Workflow Fields is a module that selectively hides or disables content fields depending on the state. What you're asking is to display the workflow state of the node, which isn't related. I suggest to either:
a) file this request on the Workflow module itself
b) change the node's theme to display the state
c) create a module that uses hook_nodeapi to add the state name to $node->content when the node is being displayed

Cheers!

#2

stacysimpson - May 26, 2009 - 20:35

Did you find a good method to expose the workflow state as a field? If so, please advise.

#3

yo-l - October 5, 2009 - 11:32

This way we did it on our site.

1. Create one field for each state in the content type you want it shown.
2. Set default value on each to match the each state name. (we have set the only allowed value to the state name to.)
3. In the workflow settings. For each state. remove permission for all users to the fields not matching the state. and add permission for all users to the field that matches the state.

 
 

Drupal is a registered trademark of Dries Buytaert.