Copied to clipboard

Flag this post as spam?

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


  • Tim Almond 8 posts 88 karma points
    Nov 21, 2017 @ 12:08
    Tim Almond
    0

    Updating Content and Refreshing the Tree

    Hi,

    I've created a new Plugin that uses a controller and ContentService to add new nodes that are children of the parent node. This is updating fine.

    What I'd like is that after the update (and notification tells the user that the update is done), that the content tree is refreshed so that when they click content, the new children of the parent are there. At present, when someone clicks, the tree is the old version. If they refresh the page, the nodes are there.

    I've tried using

    navigationService.syncTree({tree: 'content', path: ["-1"], forceReload: true});
    

    but I get an error of Could not find the tree content, activeTree has not been set

    Is there something wrong with my settings, or is there any way to do this. I don't mind switching node if necessary, but I'd rather not have to. I don't even mind if I "unload" the Content node, so that when they click on Content, it does a full reload.

    Thanks in advance.

Please Sign in or register to post replies

Write your reply to:

Draft