This question is about the URL Update feature when changing the value of a Page
Title
field. The behaviour is coded into CMSMain.EditForm.js.
I'm stripping down and customising the CMS to be usable by an absolute basic computer user or the negligent client, who will most likely skip pressing the Update URL button upon page name change. In these cases it would be very convenient if the URLSegment
would be automatically updated.
Q: What would be the simplest way to automatically have the URL segment updated, IE simulate the result that would appear upon clicking the "Update URL" button, after changing the Title
field?
SiteTreeExtension
seems to already exist in core files), placed the if statement in brackets (also tried removing the if statement). I get an internal error on Publish – Colossal