I have a Drupal installation with several thousand blog entries. I have decided to divide the blog up, and have defined a taxonomy category (blog type) with two terms (e.g. apples, oranges).

Is there a way I can retrospectively apply the term 'apples' to all current blog entries? 95% of the blog enties on the site would fall into this category, so the easiest thing for me to do is to apply this term across the board, then manually edit the remaining 5% so that they have the term 'oranges' attached.

Thanks in advance.

Comments

nevets’s picture

I think the Views Bulk Operations module can be used to do what you want.

blogjam’s picture

Thanks, but I don't display these nodes in a View, and the screenshot provided doesn't seem to offer the option I'm after, so I assumed it wouldn't work for me. Is there a way around this?

nevets’s picture

You would need to create a view that displays the blog nodes, you want the view to display fields, I chose only titles.

Then change the view style to "Bulk Operations", under "Selected operations" I checked "Modify node taxonomy terms (views_bulk_operations_taxonomy_action)"

izmeez’s picture

You don't need to create a view.

Just install VBO and go into the default view it provides for itself.
On the default view click on the views style, gear icon and see all the settings available.
Modify node taxonomy terms is among those available.
Select what you want, update and save the view.

Remember to do a backup first.

Go to the path of vbo and select the content type blog, select them all or just those you want.
Then select the type of operation, modify taxonomy term and go.

However, one caveat. Changing the taxonomy term, even done manually, will show the post as being updated. This means users will see "Updated" flagged on all the posts. To avoid this you can place the site off line and use a core hack. Remember to remove the core hack before going back online. http://drupal.org/node/505938#comment-1760834

I haven't done the operation you need to do but have confirmed the settings are indeed there.

blogjam’s picture

Thanks guys - blogs updated, all went smoothly.

It's much appreciated.