...
Multiexcerpt |
---|
MultiExcerptName | model-properties |
---|
|
The model itself provides the following built-in properties: parent : Model of the parent component or template.root : Top root model of the rendering process.content : Content node bound to the model in the rendering context provided as a ContentMap.node : Content node bound to the model in the rendering context provided as a Node.definition : The renderable definition (template, area or component) bound to the model. Same as 145308616 def .
|
These properties can referenced like this:
...
Multiexcerpt |
---|
MultiExcerptName | ctx_more-infos |
---|
|
The Javadoc resource link |
---|
className | info.magnolia.context.Context |
---|
renderType | asynchronous |
---|
| interface provides access to:In addition, Javadoc resource link |
---|
className | info.magnolia.context.WebContext |
---|
renderType | asynchronous |
---|
| provides access to:WebContext properties are null if the execution is not a Web page request. |
...
Multiexcerpt |
---|
MultiExcerptName | state_more-infos |
---|
|
Provides access to many properties as: channel ( Javadoc resource link |
---|
className | info.magnolia.cms.core.Channel |
---|
renderType | asynchronous |
---|
| )originalURI currentURI queryString mainContentNode (javax.jcr.Node)templateName locale (the same as ctx.locale )- etc.
Read the javadoc ( Javadoc resource link |
---|
className | info.magnolia.cms.core.AggregationState |
---|
renderType | asynchronous |
---|
| ) for all the properties.Please note that the values of all the properties are HTML-escaped by default. Should you need it, the raw (unescaped) data can still be accessed in the following manner: ${state.unwrap().originalURI}
However, be warned that this may expose your webapp to XSS attacks. |
i18n
A message bundle wrapper (
Javadoc resource link |
---|
className | info.magnolia.freemarker.MessagesWrapper |
---|
renderType | asynchronous |
---|
|
) to retrieve translated keys of a
message bundle according to the current
java.util.Locale.
...