Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • César Silva 1 post 21 karma points
    Dec 28, 2011 @ 14:25
    César Silva
    0

    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?!

    Thanks in advance! =)
    César

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Sep 10, 2012 @ 17:57
    Dan Diplo
    0

    * bump * I'd like to know this, too! Any ideas?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 18, 2013 @ 16:43
    Dan Diplo
    0

    Did anyone ever find a solution for this?

Please Sign in or register to post replies

Write your reply to:

Draft