Our scenario was a editor had changed a term name used in the path auto tokens and we wanted to re generate the URLs for the nodes using those terms.

One option is to use the bulk update but this runs through all nodes and is to much if only 100 out of 30,000 nodes need updating.

Using rules and VBO we could select the nodes that needed updating but there was no action that would re-generate the URL as pathauto would assume the path was a custom path and not re-generate on a node save.

This patch makes pathauto_taxonomy_term_update_alias() and pathauto_node_update_alias() available to rules as an action. At the moment the operation is just a text field but this could be made a select list - but in most cases this is going to be used as bulk update as insert and update are done on node insert and update anyway.

Comments

dwkitchen’s picture

StatusFileSize
new1.09 KB

Should have been taxonomy term not term

sophiekovalevsky’s picture

Thanks for this patch =)

basicmagic.net’s picture

Issue summary: View changes

i assume this patch could be modified slightly, to do the same thing for users?

oleksiy’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
StatusFileSize
new1.49 KB
new1.64 KB

Works for me too. Thanks!
Have updated the patch to do the same thing for user aliases.

andypost’s picture

Status: Needs review » Reviewed & tested by the community

Looks enough to cover core entities

chris matthews’s picture

mably’s picture

Status: Reviewed & tested by the community » Closed (outdated)

7.x development is not supported anymore.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.