Copied to clipboard

Flag this post as spam?

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


  • Charles Ouellet 3 posts 23 karma points
    Jun 19, 2012 @ 17:07
    Charles Ouellet
    0

    Extending BaseContentTree

    We are using Umbraco 4.7 and we have a client that needs a complex user permissions schema that can't be achieved using the Umbraco permissions system.

    I will try to explain the needs:

    Here is the tree we are having:

    - Content
       - External
           - Sellings
           - Communication
       - Internal
           - TI
           - Comptability

    My user, has access to Sellings and TI, so I can't set a StartNode because TI and Sellings are into 2 different parent nodes.

    So I decided to hook up on BeforeNodeRender event:

    public class CustomApplicationBase : ApplicationBase
    {
           public CustomApplicationBase()
           {
                BaseContentTree.BeforeNodeRender += OnBeforeTreeRender;
           }
    }

     My method signature is:

    private void OnBeforeTreeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)

    The result I want to have in my content tree is:

    - Content
       - Sellings
       - TI

    Is there any way to do this without having to rewrite an entire BaseTree?

    Thanks,

    Charles

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

    If you haven't solved this, the Epiphany Custom Content Tree package will do this. [ http://our.umbraco.org/projects/backoffice-extensions/epiphany-custom-content-tree ]

Please Sign in or register to post replies

Write your reply to:

Draft