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 4908 posts 12265 karma points MVP 5x 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

Please Sign in or register to post replies

Write your reply to:

Draft