I'm using nodequeue to pick a random feature story for our home page. I'd like to add a list of "other stories" - showing just the titles. The catch is that the displayed random entry should not appear in the "other stories" list. For example, if I have Story 1, 2, 3 and 4 and Story 3 is picked randomly, "other stories" should list 1, 2 and 4 but not 3.

Perhaps there could be a way to have the selected node number returned by the nodequeue_fetch_xxx functions, then have an exclude list parameter for nodequeue_node_titles and nodequeue_nodes?

Comments

dww’s picture

Title: Need a way to display "other nodes" » Add a "NodeQueue: Not in a queue" views filter
Version: 5.x-1.2 » 5.x-2.x-dev
Assigned: Unassigned » dww
Status: Active » Needs review

See my patch http://drupal.org/files/issues/nodequeue_exclusion_filter.patch.txt from http://drupal.org/node/182159 (which I just marked as duplicate):

As per discussion on IRC, it'd be nice to have a views filter for "nodes that don't belong to a certain queue" and/or "nodes that don't belong to any queues". Unfortunately, the UI is a little wonky since a) 'operator' is required, and b) the existing filters for "NodeQueue: Queue" can't work like this, since we need a special handler. I'm not thrilled by this, and perhaps it'd be possible to make this work better in the future, but meanwhile, it works, and solves my problem. I'm happy to make improvements if anyone has concrete suggestions.

Also, this patch includes a fix to nodequeue_handler_queuelist(). It wasn't handling '#all_ok' properly, since it was looking in the wrong place (at least via my testing). Not sure if this is the right fix, if we should move this into a different issue, or what.

dww’s picture

Assigned: dww » Unassigned
Status: Needs review » Closed (duplicate)

Actually, this is duplicate with the even older: http://drupal.org/node/125454