I'm trying look in node titles, and if it matches a term in a particular vocab, tag that node with that term (or its synonyms). I'm trying to do this retrospectively (to the thousands of nodes already on the system) and also going forwards- so each time a new node is created, it passes through this process.

What is the general strategy I would have to follow for doing this, and is Views Bulk Operations appropriate?

Any help would be much appreciated!

Infinite thanks,
Chris.

Comments

infojunkie’s picture

VBO can help for the existing nodes. You need to write an action that receives a node object and implements the logic you outlined above. Then, edit the stock VBO at admin/content/node2 to add your new action. You can then apply the action on a node selection.

To execute that action for each new node, you can use Trigger (in Drupal core) or Rules (http://drupal.org/project/rules) to select that same action you wrote above and let it be executed upon node creation.

Check out the VBO development guide (http://drupal.org/node/459070) for more information on writing actions.

infojunkie’s picture

Component: User interface » Actions
Category: support » feature
Status: Active » Postponed

This is a request for a new action. I don't usually have time to work on new actions because there's an infinite number of possible actions to request (see other requests for actions). I'll mark this as postponed until someone else picks it up or I need to implement it myself.

bojanz’s picture

Status: Postponed » Closed (won't fix)

An autotagging action would be great, but in one of the many taxonomy modules. No need to have it in VBO.