[magnolia-dev] [JIRA] (DOCU-1040) Fallbacking of ${content.windowTitle!content.title!} in i18n-ized content
JIRA (on behalf of Martin Drápela) <jira-O8DnXSz/[email protected]>
| Newsgroups | gmane.comp.cms.magnolia.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Drápela created an issue
Documentation / https://jira.magnolia-cms.com/browse/DOCU-1040 DOCU-1040
Fallbacking of ${content.windowTitle!content.title!} in i18n-ized content
Issue Type:
Task
Assignee:
Unassigned
Created:
09/Jun/17 10:40 AM
Labels:
i18n freemaker cli
Priority:
Neutral
Reporter:
Martin Drápela
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".
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?
https://jira.magnolia-cms.com/browse/DOCU-1040#add-comment
Add Comment
This message was sent by Atlassian JIRA (v7.2.6#72008-sha1:26175bf)
----------
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
(unnamed)
(image/png, 751 B) - not displayed
(unnamed)
(image/gif, 98 B) - not displayed
(unnamed)
(image/png, 1.1 KB) - not displayed
(unnamed)
(image/png, 468 B) - not displayed
(unnamed)
(image/png, 2.9 KB) - not displayed