I have configured magnolia according to the documentation in 
https://documentation.magnolia-cms.com/display/DOCS/Language .
Now for each page I have an English version mywebsite.com/en/mypage and a 
French version mywebsite.com/fr/mypage.
Now from my Java backend I would like to check what the available languages are 
performing a query using TemplateFunction . nodeByPath() in this way:

[code]final TemplatingFunctions functions = new 
TemplatingFunctions(aggregationState);
                javax.jcr.Node node 
=functions.nodeByPath("/server/i18n/content/locales","config");[/code]

But I cant understand why I am not able to find any node, while this query is 
working fine in the jcr queries app.

Does anybody have an idea how to retrieve the available languages from the 
magnolia content configuration?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=28d4cd7e-6701-43f7-8453-5741cf337907


----------------------------------------------------------------
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: <[email protected]>
----------------------------------------------------------------

Reply via email to