11-18-2010 01:17 AM
<#– Displays the contents of readme.html and/or the evaluated readme.ftl if they exist in the current space. –>
<#assign filename = "readme"/>
<#assign htmlExt = "html"/>
<#assign suffix = .lang />
<#assign htmlFilename = "${filename}_${suffix}.${htmlExt}"/>
<#assign messageError="File ${htmlFilename} does not exist! 2"/>
${companyhome.nodeByReference["workspace://SpacesStore/8d537a41-14a1-4ce8-b528-6746b38c9f05"].content}
Cela fonctionne bien. Désormais, je souhaite appeler un fichier HTML en fonction de la langue sélectionnée par l'utilisateur lors de sa connexion (Anglais ou Français). J'ai donc modifié le FTL :
<#– Displays the contents of readme.html and/or the evaluated readme.ftl if they exist in the current space. –>
<#assign filename = "readme"/>
<#assign htmlExt = "html"/>
<#assign suffix = .lang />
<#assign htmlFilename = "${filename}_${suffix}.${htmlExt}"/>
<#assign messageError="File ${htmlFilename} does not exist! 2"/>
<#if suffix=="fr">
${companyhome.nodeByReference["workspace://SpacesStore/8d537a41-14a1-4ce8-b528-6746b38c9f05"].content}
<#else>
${companyhome.nodeByReference["workspace://SpacesStore/ea516be8-adf1-426b-a5bd-d9ba0452dcf0"].content}
</#if>
Problème11-18-2010 05:35 AM
message(String) - will return the I18N message string (resolved for current user Locale setting) for the specified String message ID.
11-18-2010 05:58 AM
11-18-2010 08:25 AM
11-24-2010 06:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.