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; } }
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:
My method signature is:
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
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 ]
is working on a reply...