Copied to clipboard

Flag this post as spam?

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


  • modist 9 posts 29 karma points
    Jan 25, 2014 @ 01:06
    modist
    0

    Refresh content-tree in backoffice using api V7.02

    Xposting from /umbraco7/Using Umbraco7

    Hi,

    I have codeblock - hooked up on the event "ContentService.Saved". In this code I delete all childnodes of the saved node.

    My problem is that this change to the content-tree is not reflected in the backoffice content-tree, forcing the user to do a manual 'Reload notes'.

    I have tried several methods without any luck - see below for examples

    Umbraco.Web.UI.Pages.BasePage bp = new BasePage();
    
    bp.ClientTools.ChildNodeCreated();
    bp.ClientTools.SyncTree(node.Path, true);
    bp.ClientTools.ClearClientTreeCache();
    

    Anybody with help or suggestions ?

    Kind regards Morten

Please Sign in or register to post replies

Write your reply to:

Draft