I use workflow states on nodes... I would like to display the current state of the workflow in the node itself .... Right now users have to click on the extra tab to see the state.
I had posted earlier but got no hits. If i cant do this I may have to drop drupal in favor of a more generic ticketing system that displays states right on the front page. I am developing a innovation engine for my company and the results based on drupal looks impressive minus the small issue of not being able to display the current state of the workflow in the node itself.
I tried using the content template but it prints the id instead of the label . How can i convert the id to the label.
print workflow_get_name($_workflow);
The above didnt work either
print $_workflow;
just prints the array index
Comments
Comment #1
jjeff commentedI'm not sure what the Workflow module adds to the node object, but theoretically this should be possible... even if you need to call a
print theme('workflow_[something]', $node);.Perhaps someone on the Workflow end will have a better idea, so I'm moving this issue over there.
Comment #2
jvandyk commentedRather silly that we don't have a helper function for this. In the meantime (this code from workflow_tab_page()):
Comment #3
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 4 is no longer receiving security updates, reviews, or development from many contributed modules. Since 4 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn