Yes it is possible to extend the content Tree. You need to derive your class from the umbraco.loadContent class.Then you need to and update the record in the database to specify your assembly and typename instead of the default Umbraco settings umbracoAppTree table.
The reason I want to do this is because depending on what the user selects in a drop down in a document type - I want to change the icon used in the tree.
I would use an event in that situation. No need to modify the tree for that. Just Use the events on the BaseContentTree class.Have a look at example 4 of the event example section of the Umbraco Wiki to see how to hook into the tree.
Extending the content tree
Hi,
I was just wondering if it was possible to extend the umbraco content tree?
If you could point me in the right direction it would be much appreciated.
Thanks
Scott
Hi Scott,
Yes it is possible to extend the content Tree. You need to derive your class from the umbraco.loadContent class.Then you need to and update the record in the database to specify your assembly and typename instead of the default Umbraco settings umbracoAppTree table.
Hope this helps you,
Richard
Thanks Richard,
The reason I want to do this is because depending on what the user selects in a drop down in a document type - I want to change the icon used in the tree.
Is this still the right way to go?
Thanks
Scott
I would use an event in that situation. No need to modify the tree for that. Just Use the events on the BaseContentTree class.Have a look at example 4 of the event example section of the Umbraco Wiki to see how to hook into the tree.
Cheers,
Richard
is working on a reply...