Re: [xwiki-users] Include a page with a specific and/or default locale
Hi Vincent, that helps. I get now what i want but use groovy with I just wrote it to document the solution. Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-a-page-with-a-specific-and-or-default-locale-tp7588954p7589118.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include a page with a specific and/or default locale
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 (mic.mat.weg...@web.de(mailto:mic.mat.weg...@web.de)) 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 users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include a page with a specific and/or default locale
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 -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-a-page-with-a-specific-and-or-default-locale-tp7588954p7588967.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include a page with a specific and/or default locale
Hi, Currently the include macro doesn’t support loading a page in a language other than the current language used to display the current page. If you’re in a “de” page and that page uses the include macro, the included content will be in “de” too. Do I understand correctly that you’d like something like this: * you’re on a “de” page A using the include macro to include page B * you’d like that the content of page B that is included is for example in “en” (but no in “de” which is the language page A is displayed in ? Thanks -Vincent On 3 Feb 2014 at 23:03:58, Matthias Wegner (mic.mat.weg...@web.de) wrote: Hi All, i have some pages in Locale de and en. I want to use another page with the include macro to load a set of defined pages in one language (or with a default language, when the other is not set). Is that possible? You know a similar solution if the include macro could not be used? Regards, Matthias ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Include a page with a specific and/or default locale
Hi All, i have some pages in Locale de and en. I want to use another page with the include macro to load a set of defined pages in one language (or with a default language, when the other is not set). Is that possible? You know a similar solution if the include macro could not be used? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-a-page-with-a-specific-and-or-default-locale-tp7588954.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users