AnsweredAssumed Answered

Problem to access pagecontext from FTL

Question asked by abarisone on Jun 5, 2014
Hi all,
I have an Rich Client application with a FTL file that includes some ExtJS files.
The context of the installation is not /alfresco but /DOC/alfresco.
The problem is that in this snippet
 <script type="text/javascript" src="${url.context}/uirnet/browser/i18n.js?${url.context}" id="i18n"></script>

the former expression is correctly replaced by /DOC/Alfresco while the latter is replaced by /alfresco.
How could it be possible such different behaviour on the same line?
Besided, is it possible in Freemarker to access context path with something like ${pageContext.request.contextPath}" in order to handle this variable resolution before the scripts are initialized?

Thanks,
Andrea

Outcomes