-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
The Area annotation should allow specifying the maximum number of components that can go in an area. The default should be no limit.
Mentioned in http://forum.magnolia-cms.com/forum/thread.html?threadId=996f7297-07ae-47c7-902e-c64d9d034ccb and http://forum.magnolia-cms.com/forum/thread.html?threadId=5060d187-1d06-4725-b073-f3b327a701b4
The current solution would be to use a custom DialogDescriptionBuilder to set the maximum number. Either by checking for an annotation of your own that allows for specifying the limit or by hardcoding checks for specific classes and setting the limit based on that.
Add this to use a custom TemplateDefinitionBuilder:
<bean class="info.magnolia.module.blossom.template.TemplateExporter"> <property name="templateDefinitionBuilder"> <bean class="my.package.MyTemplateDefinitionBuilder" /> </property> </bean>
- is related to
-
MAGNOLIA-4901 Add possibility to set maximum number of components in areas
- Closed