Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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
Looks exactly what I am after, thanks Jeroen.
That event isn't picked up on a bustom tree for some reason.
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.
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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
Looks exactly what I am after, thanks Jeroen.
That event isn't picked up on a bustom tree for some reason.
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
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?
is working on a reply...