Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a lot of programmatically generated nodes with the option "Generate automatic URL alias" unchecked, so i can't use the Bulk Update of the pathauto module.

How can i to bulk generate the pathauto alias for these nodes?

Edit: i use Drupal 7

share|improve this question
up vote 6 down vote accepted

Have you tried using Views Bulk Operation. All you will need to do is create a view that will list all the nodes that will meet your criteria and then assign an action 'Generate Url alias' (I haven't tried it though.)

share|improve this answer
This method does not work if the 'generate url alias' option in not enabled on the existing node's node edit form. Which seems to make VBO useless in the situation that you have a lot of existing nodes for which the 'generate url alias' option was not enabled. – Benjen Feb 4 at 6:23

You need to delete the aliases for those previously created nodes before assigning them new aliases. This post explains how to do that.

share|improve this answer
I am using Drupal 7, not 5 or 6. Anyway in Drupal 7 the content of the link can be done from admin panel selecting a proper configuration. I am trying to bulk assign an alias to nodes that have the option "Generate automatic URL alias" unchecked – user1014351 Sep 7 '12 at 9:56

I can verify this works with Views Bulk Operations (VBO).

Just tried what Gokul N K mentioned because I ran into the same problem and I can verify it still works with actual module versions.

I had existing taxonomy terms with unchecked “Generate automatic URL alias” and I wanted to update them in bulk.

My setup below: Drupal 7 (7.34) with Views (7.x-3.8), Pathauto (7.x-1.2) & VBO (7.x-3.2). I assume the modules present / installed configured.

  1. deleted all taxonomy term aliases /admin/config/search/path/delete_bulk
  2. created a new view under /admin/structure/views and selected (Show) Taxonomy terms (in my case I selected all for all vocabularies, you could choose a certain vocab only)
  3. select "fields" under "Display format", make more adjustements if necessary, then "Continue & edit"
  4. Under fields, hit "add" and search for "Bulk operations: Taxonomy term", check and apply
  5. then check "Update taxonomy term alias" and apply
  6. Save your view and head to the views location and bulk update all taxonomy term path aliases
share|improve this answer

VBO doesn't have an option to change the status of 'Generate automatic URL alias'

You could execute the following mysql query:

UPDATE `pathauto_state` SET `pathauto`=1 WHERE `entity_type` = 'node'

Or if you have drush installed:

drush sqlq "UPDATE pathauto_state SET pathauto=1 WHERE entity_type = 'node'"

After that you can bulk generate the new paths as you would normaly do on: admin/config/search/path/update_bulk

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.