/umbraco-admin-only-property

An Umbraco package for properties restricted by user groups

Primary LanguageC#MIT LicenseMIT

Admin Only Property Editor for Umbraco

Downloads NuGet GitHub license

This package adds a new data type 'wrapper' to the Umbraco backoffice that allows you to hide a document type property from any user that is not in the specified user group(s).

Umbraco versions supported: v10.2+, v11.x, v12.x and v13.x

Installation

Add the package to an existing Umbraco website from nuget:

dotnet add package Our.Umbraco.Community.AdminOnlyProperty

Configuration

After installing the package, add a new data type using the 'Admin Only Property' property editor.

Select which user group(s) can see the property (default is 'Administrators'), and which underlying data type to use.

In the following example a textstring property will only be visible to (and therefore only editable by) Administrators. Unauthorised content editors will have no idea that the property exists.

Data type config

If you would like authorised content editors to see an indicator that the property is hidden from some users then tick 'Show indicator?'. When this is ticked, a locked padlock emoji will be displayed alongside the label, for example:

Document type indicator

Contributing

Contributions to this package are most welcome! Please read the Contributing Guidelines.

Acknowledgements

Logo

The package logo uses the Shield (by Kholifah) icon from the Noun Project, licensed under CC BY 3.0 US.