22 Sep
2010
22 Sep
'10
2:28 p.m.
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