DEV Community

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.

Latest comments (0)