Hi,
On Wed, Sep 22, 2010 at 16:28, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
Hi devs,
I'd like to add a preview link next to office attachments in the
attachments tab (See
http://jira.xwiki.org/jira/browse/XAOFFICE-11 ). I
was thinking to create a new velocity template, officepreview.vm, and
use it like this:
$doc.getURL("view",
"xpage=officepreview&attachment=$escapetool.url($attachment.filename)")
Another option is to add a new action (i.e.
/xwiki/bin/officepreview/Space/Page/presentation.ppt ) or reuse an
existing one (i.e. /xwiki/bin/preview/Space/Page/presentation.ppt ).
WDYT?
I don't really care about either choice.
However I think it's important that the preview link use "target=_blank" so
that it doesn't replace the current page.
Guillaume
Thanks,
Marius
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs