neuralyzer / dokuwiki-plugin-revealjs

Reval.js plugin for dokuwiki
16 stars 12 forks source link

Reveal.js and include #36

Closed cjohnsonuk closed 4 years ago

cjohnsonuk commented 4 years ago

I have many common slides (articles) that are used in different presentations. To avoid having to have multiple copies of the shared slides I am trying to use the include plugin to build a single wiki page with all the slide contents on then apply the reveal ~~REVEAL~~ to it.

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 digital sign screens in the office.

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 include 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 the slide show looks like everything is on one slide.

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?

cjohnsonuk commented 4 years ago

Found the fix. Its in the manual on the front of this page. A small change to the include plugin code.