-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
The mgnl CLI (2.1.0) command
mgnl create-page hello
will produce a FreeMarker file where the <title> element for the page is generated in the following way:
<title>${content.windowTitle!content.title!}</title>
From the author perspective, the command should default to the content of title if nothing is found for windowTitle.
In an i18n-ized project, however, this may be rather tricky: The resolver may actually provide a fallback windowTitle value from the JCR instead of the FreeMarker default title, even though the content for the title does exist for the given language version of the page.
Thus, under the following definition of page properties,
The English variant:
- title:
- windowTitle: This is the homepage
The German variant:
- title: "Dies ist die Homepage."
- windowTitle:
the <title> element in the German version will be rendered with the English "This is the homepage".
This could be documented somewhere (i18n / mgnl-cli).
Q for the DEVs: Could this behavior be fixed by making windowTitle a child of title in the class and, consequently, modifying also the print command to fallback to the parent?
- is related to
-
MGNLDEMO-48 Use MTE PageProperties dialog and use it for navigation and window titles.
- Closed