I had the need for a nodequeue as a Ctools context to be able to configure a nodequeue in a Panels context for use in a view.
Therefore, I made this Nodequeue Context module : https://www.drupal.org/sandbox/Mithrandir/1489516
It adds a Ctools context with a search lookup for selecting a nodequeue that can be used in Panels or as an argument for a view, e.g. fetching nodes from the selected nodequeue. That way, it is easy to replace a nodequeue on a Panels page while keeping a single view for fetching nodes from nodequeues.
Would you want to integrate it into Nodequeue? I would not object to that :)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | nodequeue-ctools-support-2467435-1.patch | 19.47 KB | gielfeldt |
Comments
Comment #1
gielfeldt commentedPatch for 2.x. Requires the token support #2467801: Add support for tokens.
Contains context, relationship and content-type.
Comment #2
gielfeldt commentedComment #3
fizk commentedThanks for the patch! I'm seeing an error when creating a Nodequeue context:
Invalid nodequeue selected.I have
asdf [qid: 1]in the "Enter the title or ID of a queue" field.I also applied the patch in #2467801: Add support for tokens and cleared the Drupal cache.