On Mon, Sep 20, 2010 at 15:10, Vincent Massol <[email protected]> wrote:
> Hi,
>
> The discussion started in http://xwiki.markmail.org/thread/hqvmy34jfknb2waa 
> but since it's an important decision I'm making it a full thread here.
>
> The idea is to know how we want to represent query string and anchors in 
> links to documents in XWiki Syntax 2.1.
>
> In 2.0 we were using: [[label>>whatever?queryString#anchor]]
>
> The proposal is to move query string and anchor to a link parameter.
>
> It be done like this:
>
> [[label>>doc:mypage||parameters="a=b&c=d" anchor="..."]]
>
> We could decide to use another syntax for parameters (ie query string) such 
> as:
>
> [[label>>doc:mypage||parameters="a=b,c=d" anchor="..."]]
>
> This would make it a little bit less URL-specific.
>
> The pros of this approach are:
> - no need for the user to escape the ? and # characters in document names

? and # no but the content of "parameters" attribute will need an
escaping syntax (either the URL one or another one if we decide to
choose another syntax)

> - makes the syntax a little bit less "magic" and more formal
>
> The cons:
> - Takes a bit longer to write
> - A new syntax to learn
>
> WDYT?

+1 for the idea in general but not sure about the proper syntax for
"parameters" attribute

>
> Thanks
> -Vincent
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to