Monthly Archive: October 2025

Allow only certain number of items in ContentAreas in Optimizely

Here is a validation attribute that I wrote in order to limit the number of items that editors may put in Optimizely ContentAreas to a specific set of numbers, instead of having max and min values. The part that may be of interest to highlight is the possibility to skip validation in certain cases, for instance when combining the validation with the Hide-attribute discussed in …

Hiding and showing edit mode properties on same content type in Optimizely CMS depending on context

At my current client we have the need to hide or show properties for editors in Optimizely edit mode, on the same page type, depending on where/how the page type is used. Our structure consists of global pages, and local instances of the same pages. There are times when global editors should be able to edit properties, while local editors should not. Since we do …