Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Did you manage to get anywhere with this? I'm in the same boat.
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.
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,
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:
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted