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

ezra-g’s picture

Category: feature » support

By 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.

dennys’s picture

I 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 ?

ezra-g’s picture

Oops, 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?

dennys’s picture

Honestly, 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.

ezra-g’s picture

Title: A queue block in a node » In a block, Show Title of Parent Queue for Current Node
Version: 5.x-2.x-dev » 5.x-2.2
Category: support » feature
amateescu’s picture

Status: Active » Fixed

@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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.