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

  1. Add the ID of the nodequeue - as a field. It is called "Nodequeue: Queue ID". i exclude it from displaying.
  2. Add a line in the Header (or Footer) of the view of the kind "Global: Text area".
  3. Switch to "PHP Code" in Text Format (if you do not have that then you should enable the PHP Filter module first).
  4. Check "Use replacement tokens from the first row".
  5. 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