Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SinkyPars 132 posts 175 karma points
    Aug 17, 2010 @ 01:09
    SinkyPars
    0

    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

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 17, 2010 @ 08:21
    Richard Soeteman
    0

    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

  • SinkyPars 132 posts 175 karma points
    Aug 17, 2010 @ 10:44
    SinkyPars
    0

    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

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 17, 2010 @ 10:53
    Richard Soeteman
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft