I would need to list nodes by wrokflow state and to display the workflow state on the node teaser, ideally as a link to all nodes in that workflow state. As if workflow states were taxonomy terms actually. Is it possible ?

Comments

jvandyk’s picture

Yes, I want this too.

robb’s picture

I have an action that allows a taxonomy term to be changed in a node. I set up actions that match each workflow state (the text I use for taxonomy terms differs from states so I allow a state => term mapping for maximum flexibility).

I also have some very small patches to taxonomy.module that create a read-only (aka system maintained) vocabulary. This prevents the term from being changed when the node is edited.

Is this what you are looking for?

mfredrickson’s picture

I see two options:

1. Rewrite workflow to use taxonomy terms as states (I think this is an awesome idea, but a daunting task). Each workflow could be a single-select, multiple parent vocabularly. Each term ("state") would have parent terms indicating what terms can transition to this term. The difficulty comes in if terms can't be their own parents....

2.
Another fudge is the nodequeue and views modules. Nodequeue has built-in support to move a node in or out of a queue, and views hooks. Views can display a queue as a page, a block, whatever.

It's a little tricky, but it works today.

-M

mfredrickson’s picture

Please see http://drupal.org/node/49537 for a fix to this problem. I'm going to leave this issue open until the changes in the link hit.

-M

jvandyk’s picture

Workflow needs to expose views for views.module.

jvandyk’s picture

Status: Active » Fixed

workflow.module now support Views, thanks to merlinofchaos.

Anonymous’s picture

Status: Fixed » Closed (fixed)