Hi Matthias,
Right now you cannot achieve what you want with the {{include}} macro.
The solution right now is to script this:
{{velocity}}
$xwiki.getDocument('Included').getTranslatedContent('fr')
{{/velocity}}
In this example I’m getting the content of the Included page in language ‘fr’
and I’m displaying it in the current page.
Please open a jira issue if you’d like to have this behavior in the {{include}}
macro.
Thanks
-Vincent
On 4 Feb 2014 at 15:57:27, Matthias Wegner
([email protected](mailto:[email protected])) wrote:
> Hi Vincent,
>
> that's right. In my mind i thought to use a html form to select the prefered
> locale which creates than the content in the selected language. With content
> i mean x pages with the locale de and en. When i select "en" in the
> creator-page (even if it is in de), the i want to get english content
> because i selected it.
>
> When the 3rd x page only has the locale "de", then i want to get the
> information if "en" exist (null is fine), so i can use the de-version
> instead.
>
> Regards,
> Matthias
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users