Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
HeyWhen a node is renamed then save and published, Umbraco updates the URL, the ContentService.Published event is raised and the node in question is passed to the event handler.If the node has descendants, Umbraco needs to update their URL's aswell, but the descendant nodes do not appear in parameters passed to the handler. I need to perform an action (generating a value for umbracoUrlAlias) for each of the descendant, so was hoping I could step in at the same point Umbraco is updating the URL properties.What is the best way to do this / is it possible?I was thinking of using content.Descendants() on IContent to update each of the values for umbracoUrlAlias and using SaveAndPublish with raiseEvents = false or just Save (depending if the node is published or not).Any thoughts much appreciated.Cheers,Lewis
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted