Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jun 28, 2012 @ 17:05
    Tim
    0

    Inject Additional Nodes for Users With Starting Node Set

    Has anyone managed to hook into the content tree and insert additional nodes where the user has a starting node set? To give you an example of what I'm trying to achieve:

    We have a large site with five main site sections, dealing with different aspects of the company. Some of the users are locked down to just their section. We also have a "Settings" node under the root, that's shared across all sections. If the user has root content access, they can see the extra content node, but for the ones locked down, they don't get the settings node as it's above their starting node.

    What I'm trying to do is insert the settings node into the tree, but I'm struggling to get it to work. If I hook into BeforeTreeRender, I can't seem to get to the methods I need to add extra items to the tree (the problem is creating an XmlTreeNode, it has no constructor and the method for returning one requires a reference to the tree class that I can't seem to get at from anywhere).

    Do any of the Tree ninjas out there have any ideas how I can do this? I COULD write a custom content tree, but that breaks a bunch of stuff in the back office (mostly to do with permissions).

    Any pointers hugely appreciated!

    :)

  • Dan White 206 posts 510 karma points c-trib
    May 29, 2013 @ 19:41
    Dan White
    0

    Hey Tim,

    Did you ever have any luck with modifying the collection from BeforeTreeRender? I'm currently trying to do the same with a Custom Media Tree [ http://our.umbraco.org/forum/developers/extending-umbraco/41351-Multiple-Start-Nodes-Media-Section?p=0#comment151142 ]. 

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 30, 2013 @ 09:45
    Tim
    0

    Hi Dan, sadly not! I haven't tried using the v6 API yet, its possible that this may have been changed since I last looked at this.

Please Sign in or register to post replies

Write your reply to:

Draft