Does anybody know a way to automatically regenerate the FURLs each time a resource is saved?
On a clients site she's decided to rename a lot of the products but the FURLs are not changing and remain related to the previous product name. At the moment I have to explain she needs to delete the content of the FURL box and the system with regenerate a new one from the page's title.
For this situation it would be ideal if I could choose to check and regenerate the FURL each time the resource is saved?
MODX Ambassador for Thailand. Managing Director at
Monogon, a web design and development studio based in Bangkok, Thailand. -
Follow me on Twitter.
-
- 24,544 Posts
If I'm understanding you, you should be able to do it with a plugin connected to OnDocFormSave (or possibly OnBeforeDocFormSave). The relevant fields are uri (the actual URL) and uri_override (0/1).
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html