On publish I would like to set a value to a numeric textbox on my documenttype Product to 0 only if it is empty.
I did this, but it does no good.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using umbraco.BusinessLogic; using umbraco.cms.businesslogic; using umbraco.cms.businesslogic.web; using umbraco;
namespace AutoSetPrice { public class AutoSetPriceHandler { public AutoSetPriceHandler() { Document.BeforePublish += new Document.PublishEventHandler(Document_BeforePublish); }
Set value on publish
On publish I would like to set a value to a numeric textbox on my documenttype Product to 0 only if it is empty.
I did this, but it does no good.
You need to inherit from the abstract class umbraco.BusinessLogic.ApplicationBase in businesslogic.dll
h.
is working on a reply...