[MAGNOLIA-4834] cmsfn.asContentMap not i18n aware Created: 11/Feb/13 Updated: 10/Mar/21 Resolved: 10/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | i18n, templating |
| Affects Version/s: | 4.5.7 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Tom Wespi | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 1 |
| Labels: | freemarker, i18n | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Java 6, EE, Freemarker |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Date of First Response: |
| Description |
|
assign targetNode = cmsfn.asContentMap(cmsfn.contentByIdentifier(content.link)) / Caused by: freemarker.template.TemplateException: Expected method. i18n evaluated instead to freemarker.ext.beans.StringModel on line 15, column 19 in sagwnew/components/titleText.ftl. |
| Comments |
| Comment by Daniel Lipp [ 25/Oct/13 ] |
|
ContentMap is just a Pojo that has no notion of i18n. Consider converting it back into node to use i18n. |
| Comment by Will Scheidegger [ 04/Jun/18 ] |
|
I'm not sure if asContentMap is where the i18n wrapper is missing. I rather think it's missing on the contentById method (tested in Magnolia 5.6) |
| Comment by Richard Gange [ 10/Mar/21 ] |
|
This should no longer be an issue in current versions. |