Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-143

Single component areas using SKIP_RENDERING allow add more than one components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 5.5.5
    • None
    • None

    Description

      Imagine that there is an area with a model class that, under certain conditions hides the area by returning RenderingModel.SKIP_RENDERING on execute().

      If area type=list and maxComponents=4, you can add components until reach the maximun number of components:

      footer:
          type: list
          maxComponents: 4
      

      Result in pages app:

      If area type=single, you can add components even if there is already a component:

      footer:
          type: single
      

      Result in pages app: you cannot add component in-area green bars but you can add components using the Add component action in the action bar:

      When this happens, the action remains available to add additional components even when the area is configured as type: single and the limit of 1 has been reached.
      The in-area edit action however continues to display "New 'area name' component" but the + icon does not appear and clicking the new component placeholder has no effect.
      We do not believe this is the correct behaviour. Other single areas disable the Add Component action when their limit is reached and stop displaying the "New 'area name' component" placeholder.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              miruela Mercedes Iruela
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD