Hi Daniele,
You can do this by extending the DialogCreator used by blossom and modify the
built dialog prior to it being displayed.
Something like:
[code]public class CustomDialogCreator extends DefaultDialogCreator {
@Override
public void createDialog(DialogFactoryMetaData metaData,
DialogCreationContext context) throws Exception {
super.createDialog(metaData, context);
for (TabDefinition tab : context.getDialog().getForm().getTabs()) {
for (FieldDefinition field : tab.getFields()) {
// change the field here
}
}
}
}
[/code]
It needs to be configured in both the TemplateExporter and DialogExporter.
[code]<bean class="info.magnolia.module.blossom.template.TemplateExporter">
<property name="dialogDescriptionBuilder">
<bean class="info.magnolia.module.blossom.dialog.DialogDescriptionBuilder">
<property name="dialogCreator">
<bean class="com.mypackage.MyCustomDialogCreator" />
</property>
</bean>
</property>
</bean>
<bean class="info.magnolia.module.blossom.dialog.DialogExporter">
<property name="dialogDescriptionBuilder">
<bean class="info.magnolia.module.blossom.dialog.DialogDescriptionBuilder">
<property name="dialogCreator">
<bean class="com.mypackage.MyCustomDialogCreator" />
</property>
</bean>
</property>
</bean>
[/code]
Hope that helps!
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=ff6c1cff-ab74-483b-a3cf-e02b963dc9f5
----------------------------------------------------------------
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]>
----------------------------------------------------------------