Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Returns a map of localized links to the current node. This means: If you have defined three locales en
, de_DE
and de_CH
the function returns localized links to the node of the context on which you are applying the function. (If the current content node is a component, the function searches the parent page node.) Magnolia 5.4.1+
Example: The map could look like this:
...
Checks whether the content is requested in the page editor in edit mode on author instance.
boolean isEditMode()
...
Checks whether the content is requested in the page editor in preview mode.
...
cmsfn.isPreviewMode()
returns True in public instance. To confirm this you can use
...
The check can be run either on the author instance or on the public instance.
boolean isPreviewMode()
...
Code Block | ||
---|---|---|
| ||
[#assign queryStringAndFragment = cmsfn.queryStringAndFragment("http://example.com#myApp::running?q=abcd")] Query string and fragment: ${queryStringAndFragment} |
See also Get localized links above.
Retrieves the language currently used.
...
Code Block | ||
---|---|---|
| ||
<html xml:lang="${cmsfn.language()}" lang="${cmsfn.language()}" class="no-js"> |
Info |
---|
Please note that |
...