Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Slideshows and include plugin
Avatar
cjohnsonuk #1
Member since Dec 2013 · 38 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Subject: Slideshows and include plugin
I've started using  the revealjs plugin * to present slide shows on our digital signage around our offices
I've tweaked the plugin to use autoslide to move to the next slide after 5000 ms and to loop the presentation.  I've updated the reveal.js code from the github repo (https://github.com/hakimel/reveal.js) for reveal.js
so I'm using  reveal.js  "version": "3.9.2",


In my wiki there is a page for each article that I want to display.  Adding ~~REVEAL~~ to the top of each article page works great, but I can only show one article at a time on the screens. 

Example slide show:
~~REVEAL~~
====== Test Slide Show ======

=====Slide 1 Level 2=====
Lorem Ipsum
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

=====Slide 2 Level 2=====
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In maximus blandit tortor quis ullamcorper. Cras lobortis lacus felis, eget ullamcorper turpis dignissim eu. Cras tellus ligula, sagittis bibendum magna eget, aliquam faucibus enim.

=====Slide 3 Level 2=====

Quisque congue lacus quam, et vehicula neque dictum quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla dignissim euismod lorem, in ultrices arcu fringilla et. Aenean mollis hendrerit malesuada.

=====Slide 4 Level 2 =====
 Nulla dignissim euismod lorem, in ultrices arcu fringilla et. Aenean mollis hendrerit malesuada. Cras tellus ligula, sagittis bibendum magna eget, aliquam faucibus enim.


I have created a separate page for each of our screens and I'm using the "include" plugin to add multiple articles to each screen page.

This way I can have one page for each departmental screen that shows department specific announcements and includes common articles displaying on multiple screens without having to duplicate the content for the common articles.

Example screen page

~~REVEAL~~

{{section>signage:articles:test_slide_show&noheader}}

{{section>signage:articles:test_slide_show_2&noheader}}

Multiple articles are showing correctly on each screen's page when viewed as a wikipage...

...until I add ~~REVEAL~~ to the top of the page at which point it breaks.

If I have ONLY ~~REVEAL~~ in the screen's page with the "include" statements then the H1s and H2s appear multiple times, once on their own slide and once at the bottom of the previous slide. 

If I have ONLY ~~REVEAL~~ in the article pages then the H1s and H2s then it looks like everything is on one page.

I manually created a page that contained the content of both test article pages and added ~~REVEAL~~ at the top and it works fine so I'm confident its not the contents of the pages once combined but how the reveal is processed relative to the include.

What's the best way of fault finding this issue? 
Is it an order of processing issue and if so how do I go about fixing this?



*(I'm using reveal plugin as a template plugin to try and update the impress.js plugin to get that working.  I want to add the option to the impress plugin for per slide parameters to enable the positioning, zoom and rotation of each impress slide)
Avatar
cjohnsonuk #2
Member since Dec 2013 · 38 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Theres a small change required to the include plugin syntax/wrap.php file detailed in the git repo where the source is maintained that appears to fix it.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-04, 12:22:58 (UTC +02:00)