Have you had a look at the wiki documentation on the Tree API, it may help you out.
Essentially in the Render method you need to define what to do when the JS call is made to load the next tree 'level'. You need to do some logic in here which determines what to load up (ie - what level your on).
I *think* you get some info passed back from the web request, but I can't remember off the top of my head.
Alternatively you can just load in a different tree, like the Content tree does to load in the recycling bin, but that can be a bit of overhead as you need a bunch of different classes (and hard to extend down more levels).
child nodes in custom sections
hi folks.,
i have created a custom section.. i would like to add child nodes with it..
if you can let know the steps as how to create a child nodes in custom section?
for example i am having custom section (named as parents)
parents
-parent1
-child1
-child2
-child3
-parent2
-child4
-parent3
Have you had a look at the wiki documentation on the Tree API, it may help you out.
Essentially in the Render method you need to define what to do when the JS call is made to load the next tree 'level'. You need to do some logic in here which determines what to load up (ie - what level your on).
I *think* you get some info passed back from the web request, but I can't remember off the top of my head.
I wrote a custom tree a while back as part of a LINQ to Umbraco POC, the source code is on this post - http://www.aaron-powell.com/blog/july-2009/creating-custom-dataproviders-for-linq-to-umbraco.aspx (I think the tree is in there).
Alternatively you can just load in a different tree, like the Content tree does to load in the recycling bin, but that can be a bit of overhead as you need a bunch of different classes (and hard to extend down more levels).
is working on a reply...
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.