Closed (fixed)
Project:
Pathauto
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2010 at 20:58 UTC
Updated:
16 Oct 2017 at 02:49 UTC
Jump to comment: Most recent
I created a bunch of nodes using node_save(). Unfortunately, I forgot to turn on the Automatic alias setting on them. (Actually, I assumed it would be on by default.) Anyone know how I can do that now (in a bulk way)? I can't figure out where in the db that setting is stored. (Other non-db approaches are fine, too.)
Comments
Comment #1
dave reidIt isn't stored in the database. It compares the current alias to what *would* be the alias when the node form is loaded. If those are equal it turns on the autoalias functions.
If you created them pragmatically, it should have created aliases for them. :/
You can go to the admin/build/path/pathauto and use the 'Bulk update' checkboxes in the node settings to bulk update the aliases for your nodes.
Comment #2
sprugman commentedI did that, but some of them didn't get created. Trying a second time....
[two min]
ok, that's weird. Now, on the second pass, it created the other ones. Is there a limit on the number that can be created at a time?
Comment #3
dave reidYes it's not very intuitive right now. There's a limit set to default 50. It's the 'Maximum number of objects to alias in a bulk update:' option.
Comment #4
sprugman commentedAh-hah! Thanks. Why so low?
Comment #5
dave reidRight now it's done all 50 in a row instead of using the Drupal batch API. So it's expensive memory and execution time-wise. We're hopefully going to be using the batch API proper soon, so *all* nodes can be done at once.
Comment #6
greggles@sprugman - You can increase the limit to 100 or 200 or whatever feels good to you. It's under general settings.
Comment #8
feelcreative commentedJust in case anyone necroviews this post - the answer is no longer true in v1.3+ new answer here: https://www.drupal.org/node/1167612