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

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

      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 

        Acceptance criteria

          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

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

                Created:
                Updated:
                Resolved:
                Work Started:

                  Task DoD

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