Copied to clipboard

Flag this post as spam?

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


  • Johan Dahlström 29 posts 131 karma points
    21 days ago
    Johan Dahlström
    0

    Show different property content depending on user selections

    Hello,

    I have an ecommerce site where users can select their desired market. I would like properties on the same page to be able to show different content depending on the user's current market (not to be confused with language).

    What are my options? My initial thought was using nested content where I wrap properties with a market picker. It felt so-so, do you have any other ideas? Creating a custom property editor or are there any existing packages?

  • Dhanesh Kumar MJ 108 posts 337 karma points
    21 days ago
    Dhanesh Kumar MJ
    0

    Hi Johan,

    I think there is no existing package to do this, but you can look into this package repository https://github.com/KOBENDigital/ConditionalDisplayers, maybe this will help you to get an idea to hide & show the backend properties.

    You need to create a custom property editor for this, and you can access userService in custom property, and based on the userGroups you can show & hide ;)

    Check the doc here for backoffice api https://our.umbraco.com/apidocs/v8/ui/#/api

    Regards Dhanesh ;)

Please Sign in or register to post replies

Write your reply to:

Draft