Office Presentation Viewer
Last modified by Vincent Massol on 2024/11/19 16:13
Description
Community Feedback
Solution 1: Image Gallery
When importing or viewing an office presentation the Open Office server generates an image for each slide. It makes sense to show the presentation slides using an image gallery. Inspired by Galleria I made a simple image gallery.
Let's say we create a wiki page from a presentation file wiki30-wysiwyg.odp. Currently the generated wiki syntax looks like this:
image:wiki30-wysiwyg-slide0.jpg
image:wiki30-wysiwyg-slide1.jpg
image:wiki30-wysiwyg-slide2.jpgChanging this into:
{{velocity}}
$xwiki.ssx.use('OfficePresentationViewer')##
$xwiki.jsx.use('OfficePresentationViewer')##
{{/velocity}}
(% class="gallery" %)(((
image:wiki30-wysiwyg-slide0.jpg
image:wiki30-wysiwyg-slide1.jpg
image:wiki30-wysiwyg-slide2.jpg
)))will lead to:



The same result can be achieved with the office macro:
{{velocity}}
$xwiki.ssx.use('OfficePresentationViewer')##
$xwiki.jsx.use('OfficePresentationViewer')##
{{/velocity}}
(% class="gallery" %)(((
{{office attachment="wiki30-wysiwyg.odp"/}}
)))
Marius Dumitru Florea