Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 25, 2015 @ 13:59
    Sören Deger
    0

    navigationService.syncTree works only after first reload

    Hi all,

    if I use navigationService.syncTree in a custom property editor (included in a custom dashboard) it works first. But on next calls it doesn't works right. The specific new child node is selected, but the parent node in content is not opened. If I clear the cache and reload the page it works again at first. On next call it doesn't work again.

    Have anyone the same issue with this?

    Umbraco version 7.2.2

    Best,

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 27, 2015 @ 09:54
    Sören Deger
    0

    I use this code:

    contentResource.save(myDoc, true, [''])
                  .then(function (content) {
                      navigationService.syncTree({ tree: 'content', path: [-1, 1073, 1089, content.id], forceReload: false, activate: true });
                  });

    I have also tried it with forceReload: true, but without success.

    First call works. But the next calls doesn't work. Only after a complete page refresh in browser it works again.

    Can someone test, if he gets the same behavior? Maybe it's an issue?

     

    Best,

    Sören

  • Kim Holzmann 17 posts 97 karma points c-trib
    Nov 07, 2015 @ 15:07
    Kim Holzmann
    0

    Hi Soren I have the same issue with umb. ver 7.3.1

    Best Kim Holzmann

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Nov 07, 2015 @ 23:47
    Nicholas Westby
    0

    Yes, I have seen this too. Would probably be good to submit a YouTrack ticket for it.

  • Adrian Nichols 2 posts 72 karma points
    Jul 22, 2016 @ 11:46
    Adrian Nichols
    0

    I'm seeing this in 7.4.3 but I've sussed out a workaround for now:

    inject the umbracoMenuActions service in to your controller and call it like this:

    umbracoMenuActions.RefreshNode({ entity: { id: content.id }, section: 'content', treeAlias: 'content' });
    

    Hope this helps...

Please Sign in or register to post replies

Write your reply to:

Draft