Copied to clipboard

Flag this post as spam?

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


  • sony 11 posts 111 karma points notactivated
    Jan 31, 2016 @ 07:58
    sony
    0

    reload node after publish.

    This is my working code :

    BasePage.Current.ClientScript.RegisterClientScriptBlock(this.GetType(), "refresh301URLTracker", "$(window).load(function(){UmbClientMgr.contentFrame('editContent.aspx?id=" + doc.Id + "');})", true);

    doc.Id is your current document Id.

    Current Umbraco Version : 6.2.1

    Thanks.

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Jan 31, 2016 @ 16:40
    Jeroen Breuer
    0

    Hello,

    Are you calling this code in a custom datatype or custom section? If you're in a custom section you can let your page inherit from Umbraco.Web.UI.Pages.UmbracoEnsuredPage. Than you can do the following:

    this.ClientTools.RefreshTree();
    

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies