How to create block for node queue module

electronicmonkey - January 2, 2008 - 21:26

I have installed node queue module and this is what I am hoping to do :

I have created a new content type called "widgets" . I want to queue articles from "widgets" into a block which will display only one random article from my node queue ?

How do i do this step by step.
Thanks

It's quite simple. Install

yelvington - January 2, 2008 - 23:53

It's quite simple.

Install the Views module.

Create a node queue and assign it to your content type. Go through your site and assign some items to the queue.

Then create a block view, drawing from your node queue. Make it one item long, and random.

Hey !!...

electronicmonkey - January 3, 2008 - 08:46

.... I did this just a couple of weeks ago. I must be suffering from the holidays hangover !! Thanks for reminding me.

funny...

electronicmonkey - April 16, 2008 - 21:39

I could do the block view, but could not find how to assign a node queue to it or make it random

See step 10-15 below

Andy Galaxy - September 16, 2008 - 22:57
  1. create a new view in administer » views » add tab.
  2. give it a name. "Random" maybe.
  3. click the "Block" section heading to get its settings.
  4. enable "Provide block"
  5. choose a "View type".
  6. type in a title for the block.
  7. type in a number for the amount of nodes you want to display in the block. You can use 1 (number one) if you like.
  8. click the "Fields" section heading to get its settings.
  9. add the fields you want. Just "Node: Title" if you just want links to the nodes
  10. click the "Filters" section heading to get its settings.
  11. select "Node: Type" and click "Add Filter"
  12. choose the CCK node type(s) you want to appear in the block.
  13. select "Node: Published" and click "Add Filter". (You probably won't want to display unpublished nodes)
  14. click the "Sort criteria" section heading to get its settings.
  15. select "Random" and click "Add criteria".
  16. click "Save"
  17. click administer » blocks and enable the block you titled in step #6.
 
 

Drupal is a registered trademark of Dries Buytaert.