Is it possible to hide a node in the backend? I've got a node in the website which only the admin is allowed to see, but it's not possible for me to set a start node for the other users (they need to be on level). How can I hide a node in the tree for other users?
Hi Jeroen,
I think you can use permissions to hide nodes from specific users. I don't know exactly which permissions settings, but I have used this in the past to hide specific pages from specific content managers.
Yep that might also be a possibilty disable browse for that node. By default you can only set permissions for individual users. When you want to disable for complete groups checkout the Usergroup permissions package.
Old post but maybe for ppl who go searching, i got a other solution:
public class TreeEvents : AppEvents { public TreeEvents() { BaseTree.AfterNodeRender += new BaseTree.AfterNodeRenderEventHandler(BaseTree_AfterNodeRender); }
and AppEvents is a class of the type IApplicationEventHandler (that must implement OnApplicationInitialized, OnApplicationStarting, OnApplicationStarted)
the only thing you erase with this is the children option so it won't open up (and you also don't have that ugly > before the node!)
Hide node in the backend
Hello,
Is it possible to hide a node in the backend? I've got a node in the website which only the admin is allowed to see, but it's not possible for me to set a start node for the other users (they need to be on level). How can I hide a node in the tree for other users?
Jeroen
Hi Jeroen,
You can use
Rich
Hi Jeroen,
I've used the event system for this in the past. Check demo 4 of my blogpost http://www.richardsoeteman.net/2009/02/22/UmbracoV4EventsDemo.aspx
What's the criteria to hide a node?
Cheers,
Richard
Fuller example
Rich
Hi Jeroen, I think you can use permissions to hide nodes from specific users. I don't know exactly which permissions settings, but I have used this in the past to hide specific pages from specific content managers.
Yep that might also be a possibilty disable browse for that node. By default you can only set permissions for individual users. When you want to disable for complete groups checkout the Usergroup permissions package.
http://our.umbraco.org/projects/backoffice-extensions/usergroup-permissions
Cheers,
Richard
Old post but maybe for ppl who go searching, i got a other solution:
public class TreeEvents : AppEvents {
public TreeEvents() {
BaseTree.AfterNodeRender += new BaseTree.AfterNodeRenderEventHandler(BaseTree_AfterNodeRender);
}
private void BaseTree_AfterNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e) {
XPathNodeIterator nodeData = umbraco.library.GetXmlNodeById(node.NodeID);
if (nodeData.Current.Name == "NewsOverview") {
node.HasChildren = false;
}
}
}
and AppEvents is a class of the type IApplicationEventHandler (that must implement OnApplicationInitialized, OnApplicationStarting, OnApplicationStarted)
the only thing you erase with this is the children option so it won't open up (and you also don't have that ugly > before the node!)
is working on a reply...