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
    Jan 27, 2010 @ 13:30
    marthin
    0

    Where are the nodes saved?

    Hi,

    I'v created my own section and built a new Tree after the instructions at http://our.umbraco.org/wiki/reference/backoffice-apis/tree-api---to-create-custom-treesapplications and this works great. My question is this, these nodes are all programmed to be loaded at runtime but arent they in anyway saved in the umbraco DB as all other nodes are?

    when using:

    var xNode = XmlTreeNode.Create(this);

    .. .. . . . . .

    Tree.Add(xnode)

    Is this saved to the database or is it loaded every time?

     

    And another question, if I whant to add subNodes to my new tree but not by programming it but using the normal "Create Node" on right-click-menu how would i accomplish this so that its saved to the DB?

    Best Regards

    Marthin

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 27, 2010 @ 13:47
    Dirk De Grave
    0

    Marthin,

    I'd really suggest taking a look at umbraco.tv which has some great vids on creating custom sections and how to configure the create action from the tree. Data represented in the tree can be from anywhere, so even your own db tables... all depends on what you'd like to present in the tree.

    If you're using custom data, you'll have to configure ui.xml (so umbraco knows what type of tasks are supported/what controls to load) as well as creating your own save/delete methods from a class that implements the ITaskReturnUrl.

    You can even build your own actions/dialogs (if the existing ones are not sufficient) with your own actions by creating a class that implements the IAction interface.

    Also, some nice tutorials can be found on several blogs as mentioned in a forum thread which I can't find atm (mine's here)

     

    Cheers,

    /Dirk

  • marthin 87 posts 106 karma points
    Jan 28, 2010 @ 22:09
    marthin
    0

    Thx to your comment and your blog i'v managed to get it working, still have som problem with the context menu though, do you have a link for som info about that to? =)

    Regarding umbraco.tv, im tried fixing this yesterday but there was som paymentproblems with paypal but hopefully this will give me some more insight.

    Thx for all your 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