Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multiexcerpt
MultiExcerptNamemodel-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 145308616def.

These properties can referenced like this:

...

Multiexcerpt
MultiExcerptNamestate_more-infos

Provides access to many properties as:

  • channel (
    Javadoc resource link
    classNameinfo.magnolia.cms.core.Channel
    renderTypeasynchronous
    )
  • originalURI
  • currentURI
  • queryString
  • mainContentNode (javax.jcr.Node)
  • templateName
  • locale (the same as ctx.locale)
  • etc.

Read the javadoc (

Javadoc resource link
classNameinfo.magnolia.cms.core.AggregationState
renderTypeasynchronous
) 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
classNameinfo.magnolia.freemarker.MessagesWrapper
renderTypeasynchronous
) to retrieve translated keys of a message bundle according to the current java.util.Locale.

...