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?

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

Reply via email to