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

Passing content attribute from parent noComponent to child noComponent ends in invalid action bar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.20
    • 6.2.16
    • None

      Steps to reproduce

      1. Edit a page yaml to have a main area (called mainArea for this example) with type noComponent and a child area (called htmlHeader) with type noComponent
      2. On the page FTL, set the content attribute as follows: 
        basic.ftl
        [@cms.area name="mainArea" content=content/]
      3. Now at mainArea FTL, pass the content attribute to the child area (htmlArea):
        mainArea.ftl
         [@cms.area name="htmlHeader" content=content/]
      4. Finally, on the htmlHeader file, consume the content:
        htmlHeader.ftl
        <div>
            This is an htmlHeader area - cannot add components but we can consume some field from dialog
            <br/>
            field value : ${content.htmlHeaderTitle}
        </div>
      5. Check that the value is properly printed but if you clic on the area, no actions are shown on the action bar.

      Expected results

      Actions are shown on the action bar

      Actual results

      Only Edit page properties and Preview page actions are available

      Workaround

      N/A

      Development notes

      Investigation lead us to confirm that it happens because area action bar is only available when a mgnl:area node takes part. Therefore, when passing the content attribute of a noComponent type area, which doesn't have the corresponding mgnl:area node, this section is not visible. 

      It wasn't happening on Magnolia 5.X

        Acceptance criteria

              lam.nguyen Lam Nguyen Bao
              ccantalapiedra Carlos Cantalapiedra
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3d 3.5h
                    3d 3.5h