Refreshing page when changing properties on BeforePublish
Hi everyone! =)
I'm currently changing a specific property on my document types depending on other properties and I'm doing this by using the Before.Publish event as follows:
public class StatusInitializationHandler : ApplicationBase {
public StatusInitializationHandler() { Document.BeforePublish += Document_StatusInitialization; }
public void Document_StatusInitialization(Document sender, PublishEventArgs e) {
Log.Add(LogTypes.Debug, sender.Id, "Initializing the common status properties.");
var statusProperty = sender.getProperty("commonStatus"); if (null == statusProperty) return;
var navigationTools = new NavigationTools(); statusProperty.Value = navigationTools.GetNodeName(sender, "AllWordsCapitalized"); } }
Now my question/issue is that my page doesn't get refreshed after publishing. Everything's working fine apart from that which I can see if I click on the node itself forcing the detail page to refresh.
Is there some sort of "EnforceDetailPageToRefresh" option I can use?!
Refreshing page when changing properties on BeforePublish
Hi everyone! =)
I'm currently changing a specific property on my document types depending on other properties and I'm doing this by using the Before.Publish event as follows:
Now my question/issue is that my page doesn't get refreshed after publishing. Everything's working fine apart from that which I can see if I click on the node itself forcing the detail page to refresh.
Is there some sort of "EnforceDetailPageToRefresh" option I can use?!
Thanks in advance! =)
César
* bump * I'd like to know this, too! Any ideas?
Did anyone ever find a solution for this?
is working on a reply...