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

Should only rename inherited component node to support spa access easier

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 6.3.0, 6.2.33
    • None
    • None
    • None
    • Yes
    • DevX 51
    • 3
    • Yes

    Description

      There is one use case need access mgnl:contentNode created by multifield but the inheritance nodes return the node has been renamed. See below image.

      Screenshot 2023-11-10 at 09.24.56.png

       

      Check inheritOnWithComplexDialog demo for freemarker/spa at https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/component-inheritance-examples/pull-requests/3/diff#magnolia/content-to-import/website.FM-complex.yaml

       

      Expectation request: Should not rename mgnl:contentNode in their case for easier to access the name of field in spa code.

       

      Discussion: 

      There will be one case that if we config inheritance like below. PAGES rest can not support like freemarker is doing now.

      inheritance:
        enabled: true
        components: all
        nodeTypes:
          - mgnl:component
          - mgnl:contentNode 

      Checklists

        Acceptance criteria

        Attachments

          1. after-fix-PR.png
            after-fix-PR.png
            404 kB
          2. before-fix-PR.png
            before-fix-PR.png
            332 kB
          3. headline-component.png
            headline-component.png
            367 kB
          4. rest-response.png
            rest-response.png
            478 kB
          5. Screenshot 2023-11-10 at 09.24.56.png
            Screenshot 2023-11-10 at 09.24.56.png
            1.21 MB
          6. Screenshot 2023-11-10 at 09.34.17.png
            Screenshot 2023-11-10 at 09.34.17.png
            1.03 MB

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                oanh.thai Oanh Thai Hoang
                oanh.thai Oanh Thai Hoang
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1d
                      1d