Hi Luis, So you probably want to use ?eval here.
However you don't need to eval your string in this case. It would be more efficient to retrieve the node and property directly. Try with the following: [code] [#assign optionLangLabel =(cmsfn.contentByPath(mgLangLabel, 'config')[userLangLabel])!] [/code] Vincent -------- Message d'origine -------- De : "luis moreno (via Magnolia Forums)" <fo...@magnolia-cms.com> Date : 29/12/2015 21:55 (GMT+01:00) À : Magnolia User List <user-list@magnolia-cms.com> Objet : [magnolia-user] Re: Retrieve Custom Label Value in a FreeMarker template Thanks Jozef, that works! I didn't think of config as a workspace. I have another issue. Let's say I have built a string formatted with the label I'm interested in retrieving. something like this: [#assign mgLangLabel = '/server/i18n/system/languages/' + cmsfn.language()] [#assign userLangLabel = 'label_' + lang] [#assign optionLangLabel = "${" + "(cmsfn.contentByPath('" + mgLangLabel + "', 'config')." + userLangLabel + ")" + "!}"] <p>${mgLangLabel}</p> <p>${userLangLabel}</p> <p>${optionLangLabel}</p> At the end ${optionLangLabel} is just a string and it just prints itself. What can be done to convert it to a command and retrieves the value from the JCR? Thanks for your help, Luis -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=7f9c82d2-93ad-4b1c-8462-fffc630405bb ---------------------------------------------------------------- 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: <user-list-unsubscr...@magnolia-cms.com> ---------------------------------------------------------------- ---------------------------------------------------------------- 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: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------