Hi.
It would be handy to supply a "edit queue" field for views module, just as there is an "edit" to edit a node.
Currently what I do in order to achieve this is described below. As I have many queues, I repeat this technique (copy-paste) which is a shame. If anybody has some idea of how to make it in a better, non-repeating way, I will appreciated that.
The trick
- Add the ID of the nodequeue - as a field. It is called "Nodequeue: Queue ID". i exclude it from displaying.
- Add a line in the Header (or Footer) of the view of the kind "Global: Text area".
- Switch to "PHP Code" in Text Format (if you do not have that then you should enable the PHP Filter module first).
- Check "Use replacement tokens from the first row".
- Add the code below to the text area.
<?php
if (user_access('manipulate queues'))
print '<strong><a href="admin/structure/nodequeue/[qid]">edit queue</a></strong>';
?>
Amir