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?
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 ;)
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?
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 ;)
is working on a reply...