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
Hi.
Can anybody give me advice for next issue?
When clicking on button 'Save and Publish' Node I must call some custom method which calculate value of Node propery and set it before save. After saving the property will have this new value.
Is it possible?
Please any links or ideas.
Thanks.
Sure it's possible. Check out the ContentServiceEvents documentation - http://our.umbraco.org/documentation/Reference/Events-v6/ContentService-Events
Hi, Dan Diplo.
Thank you for the response.
It was helpful for me.
Also for solution I used next link
Wrote simple like this:
using Umbraco.Core; using Umbraco.Web; using umbraco.BusinessLogic; using umbraco.cms.businesslogic; using umbraco.cms.businesslogic.web; namespace Umbraco.Extensions.EventHandlers { public class RegisterEvents : IApplicationEventHandler { public void OnApplicationInitialized(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { } public void OnApplicationStarting(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { Document.BeforePublish += Document_BeforePublish; } public void OnApplicationStarted(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) { } private void Document_BeforePublish(Document sender, PublishEventArgs e) { //Custom code } } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Node Save and Publish with custom event
Hi.
Can anybody give me advice for next issue?
When clicking on button 'Save and Publish' Node I must call some custom method which calculate value of Node propery and set it before save. After saving the property will have this new value.
Is it possible?
Please any links or ideas.
Thanks.
Sure it's possible. Check out the ContentServiceEvents documentation - http://our.umbraco.org/documentation/Reference/Events-v6/ContentService-Events
Hi, Dan Diplo.
Thank you for the response.
It was helpful for me.
Also for solution I used next link
Wrote simple like this:
is working on a reply...