[xwiki-users] How to create a link to a page translation?
Hello, I want to create a wiki link which opens the current page in a given language. I tried the following: {{velocity}} [[English>>doc:$doc.fullName/?language=en]]{{/velocity}} But it does not work, it generates a create page link. I could not find anything on http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion... either. How may I achieve this? Thank you. Mario
If you carefully looks at examples containing a query string on http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion... you will see that you need to move it in the link parameters instead of the reference where you put it currently. {{velocity}} [[English>>doc:$doc.fullName||queryString="language=en"]]{{/velocity}} On Thu, Aug 4, 2016 at 4:14 PM, Hofstätter Mario <[email protected]> wrote:
Hello,
I want to create a wiki link which opens the current page in a given language. I tried the following: {{velocity}} [[English>>doc:$doc.fullName/?language=en]]{{/velocity}}
But it does not work, it generates a create page link. I could not find anything on http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion... either. How may I achieve this? Thank you. Mario _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
An even shorter sytax for this usecase ist: *[[English>>||queryString="language=en"]]* since I always want to link to the current page. Thank you for your help. -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-create-a-link-to-a-page-translation... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Hofstätter Mario -
Mario -
Thomas Mortagne