SaaS CMS has officially launched! Learn more now.

Restrict Block to shared instances only

Vote:
 

Hi,

We have a use-case where we are depending heavily on the IChangeTrackable of a shared block and to make life easy for the content editors we'd like to restrict the block type to only shared to prevent Local blocks from being created.

Local blocks share the life-cycle with the page and therefore doesn't implement the IChangeTrackable interface.

Is this possible?

BR
Mikael

#304685
Edited, Jul 05, 2023 10:59
Vote:
 

Hi Mikael,

A very new problem as they are bringing features in from Optimizely Labs Block Enhancements.  That module did allow you to disable the quick editor for certain blocks and turn parts of the module functionality on/off at least.

I'm having a related issue to the same change around the usage of IValidate<TBlock> as the validations don't execute until page publish time and because inline blocks cannot be named, the validation lacks context for end users.  So I would like to understand how we can affect this new experience.

#304706
Jul 05, 2023 22:13
Vote:
 

Have you tried to use AllowedTypes attribute with IChangeTrackable interface?

#306031
Aug 01, 2023 6:55
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.