Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan van Helvoort 17 posts 190 karma points c-trib
    Dec 18, 2018 @ 11:16
    Jan van Helvoort
    0

    Hide properties for specific user groups

    Sometimes we misuse properties voor setting and / or config. It would be nice if we can specify per property if a property will be visible or be hidden for a specific group(s).

    property editor

    We could present a list of available user groups here and what is the most elegant way to do this, check if you want it visible, of default visible, and uncheck if you want to hide the property?

    Is this something that will fit inside Umbraco? If yes, what is the preferred way of doing this? If no, I will look for another solution.

    Jan.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Dec 18, 2018 @ 11:31
    Dave Woestenborghs
    1

    Hi Jan,

    Personally I would do this default visible and check it to unhide. The majority of properties will be visible to all users, so that is a lot of unchecking when creating doctypes.

    I personally hide tabs from certain user groups. Where should the checkboxes for that go ?

    Dave

  • Shannon Deminick 1524 posts 5270 karma points MVP 2x
    Dec 18, 2018 @ 11:53
    Shannon Deminick
    2

    From an API point of view this can be done now with events so it would be up to you at a granular level to decide what rules are applied to hide properties. You can subscribe to the event EditorModelEventManager.SendingContentModel and modify the outgoing model which means you can add/remove tabs/properties, and pretty much whatever you want. If you wanted to pursue that without modifying the core It would also be possible to create a package to have some UI to control these rules if you wanted.

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Dec 18, 2018 @ 13:46
    Jan van Helvoort
    0

    The question was more about the manager of the rules, not how to show / hide them. I already known EditorModelEventManager.SendingContentModel.

    Thank you! I will have a look for something to create and or mangere the rules.

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Dec 18, 2018 @ 12:18
    Nik
    1

    HI Jan,

    There is a package that I believe can be used to do this.

    Have a look at https://our.umbraco.com/packages/collaboration/backoffice-tweaking/

    Nik

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Dec 18, 2018 @ 13:48
    Jan van Helvoort
    0

    Thank you Nik,

    It is in the good direction, it seems that is is not working on later versions of Umbraco. I will use it as starting point.

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Dec 22, 2018 @ 11:51
    Jan van Helvoort
    0

    I have created a first package version. You can create and manage rules (not delete yet). This monday I will continue and build options to delete rules and toggle active state. Also to export and import rules between environments.

    https://www.myget.org/feed/janvanhelvoort/package/nuget/Our.Umbraco.HideProperties

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Dec 26, 2018 @ 13:33
  • Connie DeCinko 95 posts 248 karma points
    Mar 13, 2019 @ 22:38
    Connie DeCinko
    0

    This looks like a great package. Does it still work with Umbraco 7.13.x? This should be a standard feature in 8.

Please Sign in or register to post replies

Write your reply to:

Draft