...
Template definition | required Excerpt Include |
---|
| Template definition |
---|
| Template definition |
---|
nopanel | true |
---|
|
|
Template script | required Excerpt Include |
---|
| Template scripts |
---|
| Template scripts |
---|
nopanel | true |
---|
|
|
Dialog definition | optional Excerpt Include |
---|
| Dialog definition |
---|
| Dialog definition |
---|
nopanel | true |
---|
|
|
Model | optional The model is a JavaBean implementing Javadoc |
---|
0 | info.magnolia.rendering.model.RenderingModel |
---|
| . Use it to implement complex logic. The model can execute any Java code to retrieve data from the repository or from an external source. The results are available to the template script for rendering on the page. Hide block |
---|
optional The model can be implemented in Java or via JavaScript. Use models to implement complex logic. The results are available to the template script for rendering on the page. A Java model is a bean implementing Javadoc resource link |
---|
className | info.magnolia.rendering.model.RenderingModel |
---|
renderType | asynchronous |
---|
| . The model can execute any Java code to retrieve data from the repository or from an external source.In order to use JavaScript models, make sure the Magnolia instance contains the JavaScript Models module. |
|
Info |
---|
In the context of Single-page applications, templating is usually done externally to Magnolia. Template definitions and scripts are created in a front-end development framework. For an overview, see the Single-page applications page. |
Elements of the Magnolia template mechanism:
...