Hi,

We need a consistent way to handle document references in UIs.

For example, on the rename template, the title is "Renaming <string 
serialization of a reference here>".
Thus if the page is named "?." in the space "Main" for example we get: 
"Renaming Main.?\."
Same for the wysiwyg editor's insert link dialog box (under the title we have 
the technical reference printed).

Proposal
=======

Since references are technical I don't think we should print them in the UI.

Instead we should print its constituents: wiki, space, page (or just space, 
page when not in multiwiki or when handling a ref not from the current wiki).

This is what Caty has done in the Search UI BTW. Thus I propose to reuse her 
idea and print this:

wiki >> space >> page

where >> is the HTML &#197; symbol.

You can check visually what I mean here:
http://playground.myxwiki.org/xwiki/bin/view/Main/WebSearch?text=test&x=0&y=0

Thus applying this to the example above, we would have:

"Renaming Main >> ?."

And thus this removes the technical aspects:
* no ":" or "." to separate wiki and space
*no character escaping

WDYT? Any other idea to achieve the same result ?

Thanks
-Vincent

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

Reply via email to