Workflow Link in Views
adshill - March 23, 2009 - 00:45
| Project: | Workflow |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It would be great if there was a "Workflow Link" option made available in Views - similar to the "Edit Link" and "Delete Link" available in the node options. This would then link through to the Workflow tab of that node, should the user have the relevant permissions.
To go one step further, a link which moved the workflow to the next state would be even more interesting, or even a drop down that allowed you to choose a state to move it to! But the above would suffice... I don't want to be greedy :)
Thanks,
Adam

#1
Will there be a way to do this?
Because the structure of the links is very similar, someone knows how to do this???
Thanks in advance!!!
#2
Well I made this with custom PHP Field. I used the following code
<?phpreturn '<a href="http://localhost/PCS_drupal/?q=node/'.$data->nid.'/workflow" > Workflow</a>'
?>
It works very nice!!!!
#3
In a more general way the solution is the following
<?phpglobal $base_url;
return '<a href="'.$base_url.'/?q=node/'.$data->nid.'/workflow" >Sign Off</a>';
?>
You only have to set the variable $base_url in settings.php