basically what I want to do is, when a new item is created in the back office of a certain documentype, I want to have some code to run to set the value of a textbox field on that item dynamically (say to be the name of its parent node). Could anyone tell me roughly how I'd go about doing this?
Thanks a lot, that worked fine!
Ideally I was hoping it would happen on the creation of the page rather than the publishing but for me this does the job well enough.
Thanks again.
Code to run upon back office page load
Hi everybody,
basically what I want to do is, when a new item is created in the back office of a certain documentype, I want to have some code to run to set the value of a textbox field on that item dynamically (say to be the name of its parent node). Could anyone tell me roughly how I'd go about doing this?
thanks a lot for any help
Hi Tom
You are looking for PublishingStrategy
Cheers
Thanks a lot, that worked fine! Ideally I was hoping it would happen on the creation of the page rather than the publishing but for me this does the job well enough. Thanks again.
FYI - For Umbraco 9+, you can use the EditorModel Notifications to set an initial value on Node loading.
is working on a reply...