Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-147

Support for specifying maximum components in an area

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 2.0.4, 3.0.1
    • None
    • None
    • None

    Description

      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>
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                tmattsson Tobias Mattsson
                tmattsson Tobias Mattsson
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD