On Aug 29, 2013, at 2:02 PM, Clemens Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
wrote:
Hi Valdis,
1. What is correct syntax to add get parameters
in link
e.g. correct way for
[[link with get params>>Main.test?xpage=plain&outputSyntax=plain]]
This works as given in 2.0 syntax for me.
In 2.1 syntax the following works:
[[link with get
params>>Main.test||queryString="xpage=plain&outputSyntax=plain"]]
2. What is correct syntax for link in the same
page with some ID, e.g.
for [[link to id>>#id]]
works for me in 2.0
in 2.1:
[[link to id>>PageName||anchor="id"]]
I vaguely feel the current syntax help page could be enhanced a bit by telling which
attributes after the '||' have a special meaning (mostly the
"queryString" as far as I know), and which ones are just HTML attributes.
It is documented, see
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HLinks and
specifically the section entitled "XWiki Syntax 2.1 Link Specification".
What we are missing is a proper documentation of Syntax 2.1 and for this we need:
http://jira.xwiki.org/browse/XWIKI-9176
We really need to work on that, we've been postponing it for too long now especially
given that syntax 2.1 has been the default for a while...
Thanks
-Vincent
Clemens