Uploaded image for project: 'Magnolia Javascript Models'
  1. Magnolia Javascript Models
  2. JSMODELS-23

Parent model shall be available to JS Model script

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • 1.1.1
    • None

    Description

      When Java model is executed, it receives containing component's model instance.

      This is essential for pages that have collaborating elements: e.g. blog post page would load pot content and add post's name to <title> element.

      But post details rendering is performed by a nested content element, which would assume it is positioned in a Blog Post page and take content data from Page's model.

      But in JS Model "parent" parameter is not available.

      JavascriptRenderingModel constructor receives RenderingModel<?> parent parameter, but doesn't pass it to JS engine.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jsimak Jaroslav Simak
              azavodnik Andrey Zavodnik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD