Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi Francisco,
Yep. I wrote a blog post about a similar scenario. The post is about feature switching based on language but, as I say at the end, you can use any custom logic you like to decide whether to show the content type or not:
https://world.episerver.com/blogs/paul-gruffydd/dates/2019/3/language-based-feature-switching/
In short, you'd need to create an implementation of ContentTypeAvailabilityService which checks for the attrtibute and applies the relevant logic to determine whether the content type should be shown.
Does anyone know if we can create a custom attribute to show/hide a page type that depends on a custom condition? I would like to have an attribute like: