I run a newspaper Web site, and I have 500 existing nodes (articles). They are currently organized by sections (using Taxonomy) such as News, Sports, Opinion, etc. I have nodequeue and smart queues set up properly, but I'm wondering if there is a "simple" (or any) way to automatically add my existing nodes to their smart queues. I'd rather not have to open every single article and click on the "Add to %queue queue" button 500 times.

Comments

ezra-g’s picture

Assigned: TecHusky » Unassigned

Interesting problem!

A good way to approach this would be to write a script to get the nids and queue/subqueue ids you'd like to add them to, and then use nodequeue_subqueue_add on those nodes.

What's the newspaper site? It would be great if you could report back to this issue about how you get this task done -- It would be great for the nodequeue documentation.

Let me know if I can provide any other assistance.

TecHusky’s picture

Well, I ended up "solving" the problem...

Granted, what you suggested would have probably worked pretty well, but I realized I could just go to the different taxonomy pages (such as www.domain.com/category/sections/opinion) and have it display all of the articles with the "Add to %subqueue queue" buttons as well... So I just had to scroll through 30 or so pages and click the buttons on the articles. Yeah, it's not pretty, but it sure beats actually opening up every single node.

ezra-g’s picture

Title: Auto-assign existing nodes » Document Auto/Bulk adding to queue
Component: Miscellaneous » Documentation
Category: support » task

Thanks for reporting on your "solution" ;). Yikes. there's also views bulk operations. This is worth adding to the documentation.

stefanpetrov’s picture

sorry, delete please