I was looking to improve the UI text for the "Make this block reusable" setting (in #2731), and was baffled by this bit in the help text:
A reusable block can never be converted back into a stand-alone block.
Now, I know what the differences between reusable vs stand-alone custom blocks are, so I fully understand the above, but why are we preventing making a single instance of a reusable block back into a stand-alone one? So for example:
- User edits existing reusable block in a layout.
- We have some help text to explain that a) this is an instance of a reusable block and b) making changes here will affect all instances (copies) of the same block, across any layout it may be being used in.
- We have a "Convert to stand-alone block" checkbox.
- We explain that converting the reusable block to stand-alone will "break its link" with the "source", and that it will then be possible to configure it independently.
- During validation, we check to see if the user has ticked that checkbox, and if so, we then save the same block properties (that are in config for the reusable block) into a "regular" content/stand-alone block.
- We finally update the config of the current layout, to replace the position/region of the instance of the previously-reusable block, with its new stand-alone "clone".
That should work right?
Recent comments
Funnily we launched a new Dutch website this very week, milieucafe.nl It is not a 'news' website but operates in the context of local government. The layout focuses on content instead of...
Looking for examples of (local) news websites running on BackdropCMS
The answer is off topic, but I'll add a little. 1. Backend. Why you don't need links to other websites: Since you know the structure of your site and content, you can decide for...
Looking for examples of (local) news websites running on BackdropCMS
Hi Chrys, AI isn't always your best friend. A form alter hook is correct, but hiding by CSS isn't ideal. You could look at how the TinyMCE integration does it, which provides hiding...
CKEditor5: Here's how to prevent "Select Image from Library" from appearing