Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
Have you tried to set the default values on the local block through the shared block's SetDefaultValues?
Example:
public override void SetDefaultValues(ContentType contentType) { LocalBlock.PropertyOnLocalBlock = "value"; }
You probably know this, but also be aware of that SetDefaultValues only kicks in when creating the content type.
Yeah your suggestion does not work. But I did find a solution ... strangely enough this works:
public override void SetDefaultValues(ContentType contentType) { LocalBlock.Property["PropertyOnLocalBlock"].Value = "value"; }
Does not seem to work ... data specified is not set.
The local block is inside another shared block, and i can set default values on other properties on the shared block (just not the properties on the local blocks)