Take the community feedback survey now.
Take the community feedback survey now.
I'll try to re-post and see if it works this time.
Not sure if all of this is possible, I'll have to do a research about this.
However I do have experience in solving some of these problems.
1. Not sure how to approach this, maybe you can get inspired from this magic?
https://world.optimizely.com/forum/developer-forum/CMS/Thread-Container/2019/3/access-rights-for-properties/
2. You can override the content save/publish event in Optimizely and trigger an API call. I can't say it's best practice, but it's the first thing that came to my mind.
Maybe this one can give some inspiration?
https://world.optimizely.com/blogs/Daniel-Ovaska/Dates/2019/6/content-events-in-episerver/
3.
- Documentation on how indexing works:
https://docs.developers.optimizely.com/content-management-system/v1.1.0-search-and-navigation/docs/indexing-search-and-navigation
- Depending on how you have configured sitemap, you might be able to exclude all contents that have a true boolean on ExclusiveNews, when you generate the sitemap.
- Just do the same with Robots.txt, exclude all the content that you don't want to be crawled.
4. I can't see how it can be exposed in Content Search API if it's not in Optimizely Search & Navigation.
I hope my answers are good enough to point you to the right direction.
It worked!
Hello Manoj,
You can use a custom editor decriptor to validate the user's access to a property and otherwise hide it. This is re-evaluated on page load:
[EditorDescriptorRegistration(TargetType = typeof(string), EditorDescriptorBehavior = EditorDescriptorBehavior.Default)]
public class RestrictedStringPropertyEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
base.ModifyMetadata(metadata, attributes);
if (!string.IsNullOrWhiteSpace(metadata.PropertyName) && metadata.PropertyName.Contains("RestrictedFieldName"))
{
var canAccessField = // Add your user evaluation here
metadata.ShowForEdit = canAccessField;
}
}
}
Hi Manoj,
I think you can follow this article and tweak it based on your needs
https://world.optimizely.com/blogs/tomek-juranek/dates/2025/4/block-thumbnail-based-on-website-on-multisite-solution/
Hi community,
I'm working on an Optimizely CMS 12 project that supports multiple languages and multiple websites. I need to implement a feature on the News Page type with the following requirements:
Feature: "Exclusive News" Checkbox
ExclusiveNews
should be added to the News Page type.Conditional Visibility for Editors
Indexing & SEO Requirements
Questions:
ExclusiveNews
property in the CMS editor UI based on the editor's location (as defined in Site Settings)?Any code samples, best practices, or pointers to documentation would be greatly appreciated!
Thanks in advance!