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

Enable model.* properties

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.0
    • 1.0
    • None
    • Kromeriz 110
    • 2

      The following properties of the model are all null.

      ${model.parent}
      ${model.root}
      ${model.content}
      ${model.root}
      ${model.definition}
      

      According to jsimak, it should be "easy" to add them.
      If possible, please enable these very handy properties in JavaScript model context too.

      Because JavaScriptRenderingModel is treated as JS object in freemarker, all method calls are now routed to the model#call method.

      We can add simple conditions to treat methods above as special cases.

        Acceptance criteria

              jsimak Jaroslav Simak
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD