Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
...
On the author instance, the result on the page is an area bar and an end marker. The title
property is rendered in the bar. When editors click the Add icon in the New Component box they can add components inside the area.
Attributes:
name | Name of the area definition node. | |||||
contextAttributes | A hash of key-value pairs. Any custom attribute and its value as retrieved from the current context.
|
The cms:component
directive (
Javadoc | ||
---|---|---|
|
content
attribute defines what content the component edits. This tag is commonly used inside the list
directive to loop through the components in a map.The content to render, and possibly edit in case of an editable component, is passed in the content
attribute. On the author instance the directive renders a component toolbar. The value of the title
property is rendered in the bar.
Attributes:
editable | Defines whether edit icons should be displayed. Mainly useful if content is inherited. Default is |
template
dialog | Opens the specified dialog when editing the component. |
contextAttributes | A hash of key-value pairs. Any custom attribute and its value as retrieved from the current context. |
|
Example:
Code Block |
---|
[#list components as component ] [@cms.component content=component /] [/#list] |
...
The following attributes can be passed with any directive. They define which content the element created by the directive should work on.
Attributes:
content | An item, list or map. |
workspace | Workspace used if path is defined. Same as of the current content |
path | Path in the workspace. |
The content
attribute tells a script which item it should operate on. Scripts typically operate on the "current" node. For a page-level script the current node is the page, for an area-level script the current node is the area, and for a component-level script the current node is the component. However, there are cases where you want the script to operate on a different node. This is where the content
attribute is handy.
...