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

Component Inheritance with Visual SPA Editor

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Major
    • 6.3.0, 6.2.28
    • None
    • None
    • None
    • Yes
    • Yes
    • DevX 37, DevX 38
    • 5
    • Yes

    Description

      As a developer I want to use magnolias 'Component Inheritance' feature when I use the Visual SPA Editor (SPA Renderer and frontend frameworks and REST endpoints) so that I can provide a very comfortable author experience for things like footers, headers and sidebars.

      Acceptance Criteria

      • When component inheritance is specified in the templates, then developers can also use this in front-end projects. They have some convenient way to get the inherited contents on sub-pages. Maybe the REST endpoint simply delivers the inherited content directly as if the inherited components were simply on the subpages.

      Context

      Component Inheritance is a popular feature in Magnolia templating. It allows authors to configure componets on a top page, and then all of the subpages automatically get that same configuration.

      It is typically used for things like headers, footers and "extra" or "sidebar" content.

      There are workarounds, such as managing that content to be shared across multiple pages in its own unique page, or in a separate app. But the authoring experience is not as good, its more complicated. It would be better to enable this useful features for SPA as well as freemarker templating.

      https://docs.magnolia-cms.com/product-docs/6.2/Templating/Template-definition/Area-definition/Component-inheritance.html

      Workaround

      Use inheritance without rest inheritance in SPA:
      https://github.com/bartoszstaryga/mgnl-spa-inheritance

      For Discovery phase:

      • Estimation for amount of time to implement.
      • Investigate possible approaches. 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            1.
            Implement Sub-task Completed Oanh Thai Hoang

            100%

            Original Estimate - Not Specified Original Estimate - Not Specified
            Time Spent - 1.75d
            2.
            Review Sub-task Completed Javier Benito  
            3.
            piQA Sub-task Completed Javier Benito  
            4.
            QA Sub-task Completed Phong Le Quoc  

            Activity

              People

                oanh.thai Oanh Thai Hoang
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                7 Vote for this issue
                Watchers:
                12 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 - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 7d 1.5h
                      7d 1.5h