Copied to clipboard

Flag this post as spam?

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


  • marthin 87 posts 106 karma points
    Sep 28, 2010 @ 14:40
    marthin
    0

    Where is UmbClientMgr ?

    Hi,

    Im new to v.4.5 and in trying to use modals and stuff and it seem everything is done from the UmbClientMgr.

    If I have my own .aspx file what do i need to include to acces this?

    Where do I find a API for UmbClientMgr so I can see all neet functions?

     

    Best Regards

    Marthin

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Sep 28, 2010 @ 14:57
    Lee Kelleher
    0

    Hi Marthin,

    UmbClientMgr can be found here: \umbraco_client\Application\UmbracoClientManager.js

    Cheers, Lee.

  • marthin 87 posts 106 karma points
    Sep 28, 2010 @ 15:19
    marthin
    0

    Thank you Lee!

    Greate!

    Do you perhaps also know how to reload a treeNode with this new lib?

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Sep 28, 2010 @ 15:28
    Lee Kelleher
    1

    Hi Marthin,

    I haven't tried to reload a tree node, but just had a look through the JavaScripts.  In \umbraco_client\Tree\UmbracoTree.js there is a function called "refreshTree", (there is also one called "rebuildTree").  So you could try something like...

    UmbClientMgr.mainTree().refreshTree('content');

    By the way, I haven't tested this in any way, shape or form... mostly guess-work here! ;-)

    Shannon Deminick is probably the best person to ask about this.  He does come on the forum, so hopefully I might be able to help out?

    Other than that... play around with the JS libraries - and let us know if you figure it out!

    Cheers, Lee.

  • marthin 87 posts 106 karma points
    Sep 28, 2010 @ 16:13
    marthin
    0

    Hi again!

    So i tried your code with a small change. since im working from a modal in a I frame i called

     

    parent.UmbClientMgr.mainTree().refreshTree('content');

     

    And this worked greate! I alos changed the refreshTree function to reloadActionNode() and that reloaded the correct level in the tree.

    This is greateeeee!

    My next step is to figure out how to get a modal to get my "custom section" tree so that i can create a move/copy funtionality like the one in the content section.

    Thx for all help!!

  • 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