[JSMODELS-16] Enable model.* properties Created: 14/Aug/17  Updated: 24/Aug/17  Resolved: 22/Aug/17

Status: Closed
Project: Magnolia Javascript Models
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Sprint: Kromeriz 110
Story Points: 2

 Description   

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.


Generated at Mon Feb 12 05:58:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.