The big deal for me now its to mimic the functionality of the main content tree in my custom tree. I would like the nodes to behave in a similar way where the user can define doctypes and do all of the usual functions create, delete, move, sort etc...
Using the above tutorials I've managed to add 'Actions' to the node menu when you do a right click a node the option to 'create ' is there but its not actually creating a node related to a doctype, saving to the Umbraco database and being given a NodeId... all the usual stuff you'd expect.
I know this is going to take some work but I just need to know where to being.
So my main questions are...
How do you define document types for nodes in the custom tree? Where are these manage ie 'Settings'
How do actually get the functions 'Create' 'Delete' etc to actually work? (I'm guessing it''l be some AngularJS magic)
My code so far is just whats in the above tutorials.
Any help will be greatly appreciated thanks in advance guys.
Thanks for that, I'm aware that the createTreeNode makes nodes in the trees which are not related to DocumentTypes at all. However I was wondering if it was possible to link them with doc types (cant seem to find any documentation or guides on this specifically, so I'm presuming you cannot).
The alternative option to my problem would replicate the content tree in my custom section then hide all nodes apart from the ones needed - do you think this would be a good idea or not really best practice?
I'd like to be able to create nodes (of a specific document type) under certain nodes in my custom tree - just like the regular content tree works... But in order to do that it seems easier if they are all document type'd nodes, that way I can just add the child doc type to the Allowed child node types in the permission section of 'Settings'.
Louis mentioned using the TreeService which I'm looking into, I'm just slightly confused as to why I cant use the existing create and delete node functionality on my custom tree - I understand how to add custom tree actions but it seems long winded to have to create new ones when Umbraco already has what I need.
I'm quite new to Umbraco so maybe I'm just not connecting things in my head correctly. Hopefully this all makes sense.
if they are actually nodes that sit below other nodes in the content tree then yes normally you do that with setting allowed children and create them as document types. Wouldn't bother with creating a custom section for that.
Custom sections are for custom data not to handle stuff from the content section.
Creating Doctypes in a custom tree - Umbraco 7
Hi All,
With relative ease I've created a custom section and tree in Umbraco 7 using the following online resource...
The big deal for me now its to mimic the functionality of the main content tree in my custom tree. I would like the nodes to behave in a similar way where the user can define doctypes and do all of the usual functions create, delete, move, sort etc...
Using the above tutorials I've managed to add 'Actions' to the node menu when you do a right click a node the option to 'create ' is there but its not actually creating a node related to a doctype, saving to the Umbraco database and being given a NodeId... all the usual stuff you'd expect.
I know this is going to take some work but I just need to know where to being.
So my main questions are...
My code so far is just whats in the above tutorials.
Any help will be greatly appreciated thanks in advance guys.
Kris
+1
Did you manage to get anywhere with this? I'm in the same boat.
Hi James,
the topic is pretty old. There are lots of tutorials out for custom sections and trees in the newer versions.
One hint: you create custom nodes in the trees which are not related to DocumentTypes at all.
Regards David
Hi David,
Thanks for that, I'm aware that the createTreeNode makes nodes in the trees which are not related to DocumentTypes at all. However I was wondering if it was possible to link them with doc types (cant seem to find any documentation or guides on this specifically, so I'm presuming you cannot).
The alternative option to my problem would replicate the content tree in my custom section then hide all nodes apart from the ones needed - do you think this would be a good idea or not really best practice?
Thanks for your time, James
Hi James,
why exactly do you want to achieve in your custom section with your nodes.
Maybe it is easier to add a custom menu item to the nodes in the content tree?
I'd like to be able to create nodes (of a specific document type) under certain nodes in my custom tree - just like the regular content tree works... But in order to do that it seems easier if they are all document type'd nodes, that way I can just add the child doc type to the Allowed child node types in the permission section of 'Settings'.
Here is my original post: https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/93188-creating-custom-umbraco-tree-using-document-types
Louis mentioned using the TreeService which I'm looking into, I'm just slightly confused as to why I cant use the existing create and delete node functionality on my custom tree - I understand how to add custom tree actions but it seems long winded to have to create new ones when Umbraco already has what I need.
I'm quite new to Umbraco so maybe I'm just not connecting things in my head correctly. Hopefully this all makes sense.
Regards, James
Hi James,
if they are actually nodes that sit below other nodes in the content tree then yes normally you do that with setting allowed children and create them as document types. Wouldn't bother with creating a custom section for that.
Custom sections are for custom data not to handle stuff from the content section.
is working on a reply...