DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 964,423 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Using conventions to fine tune the editor experience in Umbraco v8
Tim Geyssens
Tim Geyssens

Posted on

Using conventions to fine tune the editor experience in Umbraco v8

The Umbraco backend allows you to set a start node per backend user (in both content and media) but in some cases this isn't sufficient to hide certain properties that are only of interest for power users...

Say you have the following "admin" group/tab (yes I'm using Matryoshka )

Admin tab

Where you can set that you don't want this page to be unpublished... it makes sense to have this setting as an admin but the content editors shouldn't see this one...

So with some event magic and some simple conventions we can add a bit of code that will hide the admin group/tab on all docs (if you aren't part of the admin usergroup)

Main bit here is hooking into EditorModelEventManager.SendingContentModel and removing the admin tab when the current user isn't in the admin user group...

et voilΓ β€―! all admin tabs will be hidden from editors not in the admin user group.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.