giannag
13 years agoAdept
Freemarker for Category's Language Default?
Hello! I am writing an if/else statement for when to display Japanese test or images on our community. In psudocode: "IF the user's personal language setting is set to Japanese OR the page's de...
- 13 years ago
Just make sure that in both code examples the condition of the if-statement is compared correctly.
There should be two equation signs when comparing a variable with a string:
<#if (settings.name.get("profile.language") == "ja") || (coreNode.settings.name.get("profile.language") == "ja") >
Maybe that's why it didn't work in your initial testing when comparing agains settings.name