@Lea, 

You asked in the conference: how do I add a checkbox in every dialog? Your use 
case was to let editors assign a special background color to any component by 
checking the box.

The extends mechanism would be ideal here. Define the checkbox field once in 
your module and reference the field definition from all component dialog 
definitions.

https://documentation.magnolia-cms.com/display/DOCS/Configuration+management#Configurationmanagement-Extendingconfiguration
 

As you did not want to touch the configured dialog definitions, the second 
option is Blossom. Here's a tip from Tobias:

[quote]The equivalent of the extends feature for configured dialogs in Blossom 
is making use of the class hierarchy. Blossom will invoke @TabFactory methods 
in superclasses too. When you have a requirement to include a tab on many or 
all components or templates add an abstract base class that they can inherit 
from. If you only want to add a field and not a whole extra tab then use a post 
create callback. Annotate a method in the abstract base class with @PostCreate 
and it will be called to do adjustments on the dialog before its displayed. 
[/quote]

https://documentation.magnolia-cms.com/display/DOCS/Blossom+module#Blossommodule-Postcreatecallbacksfordialogs

A mixed approach where you would configure other fields and only add the 
checkbox using Blossom is unfortunately not possible.

Hope this helps.

--Antti

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=7ecb6903-e90a-4d92-a424-4a3a23d4975f


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to