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

Provide endpoints serving the template definition

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2
    • 5.7.2, 6.0
    • None
    • None
    • Yes
    • Yes
    • SPA Editor 7, SPA Editor 8, SPA Editor 9, SPA Editor 10, SPA Editor 11
    • 3

      User story:

      As a developer I want to publish my entire SPA build into a Magnolia module, including the index.html page it creates, and use the index.html as a template script, so that I can easily setup the Page Editor to edit the SPA.

      Notes:

      Frontend frameworks always build a default index.html page which contains the relative links to other files (such as js & css) and sometimes other metadata such as a "base" path. Often the relatively linked files have new names with every build to prevent unwanted caching, and sometimes the js files are split to optimize app loading performance. It can be tiresome and error-prone to transfer the proper information from this file to a regular freemarker template script. Ideally a template definition can point directly to this generated index file and take care of anything else such as providing the functionality that a page directive does.

      Acceptance criteria:

      • Developer only needs to provide the path to the index file in their template definition.
      • Developer provides a different template renderer name than freemarker, maybe "static", or "single-page-app".
      • Developer does not need to add a page directive or any area directives in the file, or change it in any way.

       

      Additional notes:

      Possibly the renderer does the following (in the future):

      • Loads the specified index.html file.
      • Adds the Magnolia page directive.
      • Set a BaseURL in the page.
      • Write "Mapping configuration" to the page.
      • Write "EditorHints" to the page (when in Page Editor).

       

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 3.75d Remaining Estimate - 0.25d
                    0.25d
                    Logged:
                    Time Spent - 3.75d Remaining Estimate - 0.25d
                    3.75d