Update a document type property value in the published event
Hi there,
Is there a way to update a property value of a published content in the event
Umbraco.Core.Services.ContentService.Published
I need to save some published data into a secondary database. I can only do it in the published event (as only then I know the publish was successful). However I do want to update the umbraco content with the id of the content saved into the secondary db.
Thank you. I am trying to call it within the 'published' event so if I call SaveAndPublishWithStatus from within the published event I get into a loop.
Is there a way to publish without raising this event from within?
Update a document type property value in the published event
Hi there,
Is there a way to update a property value of a published content in the event
I need to save some published data into a secondary database. I can only do it in the published event (as only then I know the publish was successful). However I do want to update the umbraco content with the id of the content saved into the secondary db.
Thanks!
You should do something like this
Hi there,
Thank you. I am trying to call it within the 'published' event so if I call SaveAndPublishWithStatus from within the published event I get into a loop.
Is there a way to publish without raising this event from within?
Thank you
Are you sure its raising a loop.
I haven't tried it in a published event, But i'm using a MediaService.Save in a media saved event without it going to loop
Hi, it does go into a loop, but I am just checking some values to exit it. Thank you!
is working on a reply...