Sounds good to me. One question though : what's happening when a link points to a non-existent attachment ? Should we display a full link leading to nowhere or should we redirect the user to the attachment upload form with a message saying the attachment doesn't exist ? Guillaume On Wed, Sep 3, 2008 at 9:38 PM, Vincent Massol <[email protected]> wrote:
Hi,
This has been slightly discussed in other thread but not clearly so here's the clear proposal I'd like to implement:
1) Linking to an attachment:
[[label>attachment:my.doc]] or simply [[attachment:my.doc]]
2) Image link:
[[label>reference>image=my.png]] or simply [[reference>image=my.png]]
3) Linking to an attachment with an image displayed:
[[label>attachment:my.doc>image=my.png]]
Note 1: In 2) and 3) the label is only used in the HTML "alt" and "title" attributes since the link is on an image.
Note 2: The value for attachment:xxx is an attachment name (as in my.doc) or the qualified name of an attachment. I'm proposing "wiki:space.page^attachment" for now. Note 3: The value for image can be: a full URL, an image attachment name (as in my.png) or the qualified name of the image as in: "wiki:space.page^imagename" (same as above).
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/