===================
Although pathauto in 6.x-1.x provides a utility to "bulk generate paths", this one-off action fails on thousands of nodes, and does no "batch" processing.
This results in timeouts, memory overruns, and failure. (Pathauto token generation can be expensive, and becomes painful over thousands of nodes)
This "batch" issue is being addressed in 6.x-2.x & 7.x
Until then, you still have an alternative, and it"s better!
The pathauto 6.x-1.x module already exposes the pathauto path-rebuilding function as a node operation that can be applied through the content management screen, or if using "Views Bulk Operations" - as a bulk operation there.
This means you will be able to select only and all nodes of a desired content type, and do them all in a "batch" mode without processing overruns.
See the project itself for install and configuration options.
Once enabled, a new action "Update URL alias" becomes available as an available action within VBO. (when editing the view, and the Style: Bulk Operations settings)
You will want to turn that on.
At the same time, ensure that VBO will use "batch mode" ( To execute operations: "Use Batch API" )
Once that is on, the update task will show up on the VBO screen, and you can, for example, choose to regenerate updated alias paths for 3000 "Article" type nodes without doing the same for 15000 "Image" type nodes.
The global pathauto settings do not allow for any extra logic, though sometimes you want to do different things to different content (especially if working with bulk imported content, or re-architecting)
You can set the pathauto settings to aggressively discard or overwrite any existing paths, then trigger the bulk update over a selection of pages you have defined through VBO. (ones you really need to rewrite)
After that you can change the global pathauto settings to just "update" or "leave existing aliases" for other content from then on. Or vice versa or something else.
Without VBO, you could do one or the other of these updates, but not both.
It takes a few more steps, but it"s possible.
Source
https://www.drupal.org
درباره این سایت