Closed (fixed)
Project:
Nodequeue
Version:
5.x-2.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2008 at 02:49 UTC
Updated:
25 May 2011 at 23:11 UTC
This module is great, I can nodequeue_nodes() function inside a node to build a queue nodes list in it. Readers can see a list of a queued articles.
Is it possible to show the queue node automatically in every node which has queue ? Maybe a block, maybe just show the list in the top or bottom, thanks.
Comments
Comment #1
ezra-g commentedBy show the queue do you mean show the contents of the queue or show the queue's title?
You can show the contents of the queue by embedding a view and passing it the nid as an argument, and using the argument to filter by nodequeue ID.
Comment #2
dennys commentedI just want to show the queue's title. I know how to use a view, but I don't know how to pass the nid as an argument for queuenode in view, could you give me a hint ?
Comment #3
ezra-g commentedOops, sorry -- There's no Views argument that takes a nid a returns a queue. This would be complicated as a feature request because the same node could be a member of multiple queues. You'd need some additional logic to decide which queue to return.
This is an issue that comes up in other situations, such as when displaying multiple 'add to queue' links #241993: controlling what NodeQueue 'Add' link adds to?.
What criteria would you use to decide which queue is returned for a given node?
Comment #4
dennys commentedHonestly, I don't consider one node with multiple queues. It's complex, my suggestion is, the system could provide 2 options for multiple queues.
1. Show all queues on screen. (use CSS or other layout to distinguish different queues)
2. Show a random queue on screen.
But my requirement is simple, sometimes I'll write some "series" articles and I want to show a block (inside a node or an outside standalone block in Drupal) to show all series articles. I know I can add "nodequeue_nodes()" function in every nodes of the series, but it seems not friendly. And I need to use phpcode filter, maybe a filter is better.
Comment #5
ezra-g commentedComment #6
amateescu commented@dennys, this would be far easier to implement with a taxonomy term (tag) for each seriers and a views block that receives that term as a default argument.