Copied to clipboard

Flag this post as spam?

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


  • Brendan Rice 538 posts 1102 karma points
    Feb 04, 2012 @ 02:46
    Brendan Rice
    0

    Hiding top level nodes in custom tree

    I have a custom tree that looks like this:

        Admin
        |- Node 1
        |- Node 2
        L Node 3

    Node 1-3 are defined in the umbracoAppTree table. I want to hide Node1 when a certain user type is logged in.

    What is the best way of doing this?

     

     

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 04, 2012 @ 10:54
    Jeroen Breuer
    1

    You can probably hide the nodes using some events. Take a look at demo 4 on this page: http://www.richardsoeteman.net/2009/02/22/UmbracoV4EventsDemo.aspx

    Jeroen

  • Brendan Rice 538 posts 1102 karma points
    Feb 04, 2012 @ 17:39
    Brendan Rice
    0

    Looks exactly what I am after, thanks Jeroen.

  • Brendan Rice 538 posts 1102 karma points
    Feb 04, 2012 @ 17:48
    Brendan Rice
    0

    That event isn't picked up on a bustom tree for some reason.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 04, 2012 @ 18:39
    Jeroen Breuer
    0

    Perhaps you need to change your custom tree to fire the events. Have a look at the Umbraco source of other trees and where those events are fired.

    Jeroen

  • Brendan Rice 538 posts 1102 karma points
    Feb 05, 2012 @ 22:32
    Brendan Rice
    0

    Thanks Jeroen, that helped a bit. I can only see a way of removing level 3 nodes though, I need to remove nodes at level 2 (Admin > Node 1).

    Maybe I am missing something obvious? 

Please Sign in or register to post replies

Write your reply to:

Draft