====== S5 Presentations ====== ---- plugin ---- description: Create slideshow presentations from a DokuWiki page author : Andreas Gohr email : andi@splitbrain.org type : render lastupdate : 2022-11-30 compatible : Adora Belle, binky, ponder stibbons, hrun depends : conflicts : similar : tags : media, slideshow, javascript downloadurl: https://github.com/splitbrain/dokuwiki-plugin-s5/zipball/master sourcerepo : https://github.com/splitbrain/dokuwiki-plugin-s5/ bugtracker : https://github.com/splitbrain/dokuwiki-plugin-s5/issues donationurl: http://donate.dokuwiki.org/S5 ---- //S5 is a slide show format based entirely on XHTML, CSS, and JavaScript. With one file, you can run a complete slide show and have a printer-friendly version as well.// This plugin can create [[http://meyerweb.com/eric/tools/s5/|S5 slide show]] presentations from any DokuWiki page. ===== Download and Install ===== Use the download link given above to download or install the plugin through the plugin manager. ==== Changes ==== {{rss>https://github.com/splitbrain/dokuwiki-plugin-s5/commits/master.atom date}} ===== Configuration ===== * You may choose from 7 different themes using the config manager or setting ''%%$conf['plugin']['s5']['template']%%''. * New S5 themes can be installed in ''lib/plugins/s5/ui/'' * If you're using the [[folded]] plugin, you may have to make sure the ''getSort()'' level for it is higher than the s5 plugin. ===== Usage ===== Usage is simple. Just add ''%%~~SLIDESHOW~~%%'' somewhere in the page (at the very top is recommended), and start your page with a H1 headline. Following content will go on the first (welcome) slide. Additional slides are created by H2 headlines. Adding a horizontal rule finishes the current slide and additional content goes to the "Handout" area (only visible when the slide is printed). Footnotes and abbreviation will be ignored on the slide. Plugin output won't be visible unless a plugin handles the mode ''s5'' explicitly. A template can be selected from within the syntax like this: ''%%~~SLIDESHOW flower~~%%''. Opera users need to press ''F11'' to enter the presentation mode. Navigating between the slides is then possible using ''PAGE_UP'' and ''PAGE_DOWN''. Another option is to insert a link to the s5 view of any page in your template. For example edit: ''/lib/tpl//main.php'' to add online slideshow in the topright div. ===== Using with jsMath ===== Hacking ''renderer.php'' like this made it work for me: // add those two lines: ===== Incremental ULs ===== just in case you want to show List-Elements one by one put this at the bottom of the page ===== Discussion ===== * Is there a way to manually create a new page (with a new H2 headline) or automatically split content in multiple slides (for instance two pages : "H2 Headline (1/2)" and "H2 Headline (2/2)") ? *Another solution would be an option to use H3 headline for new slides. * You can try this patch : --- s5/conf/default.php.orig 2015-06-02 18:03:19.062284950 +0200 +++ s5/conf/default.php 2015-06-02 17:50:35.406550419 +0200 @@ -1,4 +1,5 @@ getConf('maxHeaderLevelForNewSlide')){ if($this->slideopen){ $this->doc .= ''.DOKU_LF; //close previous slide } $this->doc .= '
'.DOKU_LF; $this->slideopen = true; + + if ($level == 2) { + $this->lastH2 = $text; + } else { + $level = 2; + $text = $this->lastH2 . " - " . $text; + } } $this->doc .= ''; $this->doc .= $this->_xmlEntities($text); @@ -149,7 +157,7 @@ * Top-Level Sections are slides */ function section_open($level) { - if($level < 3){ + if($level <= $this->getConf('maxHeaderLevelForNewSlide')){ $this->doc .= '
'.DOKU_LF; }else{ $this->doc .= '
'.DOKU_LF; * There is a colision with the html5 plugin. When it is on, the button for starting is not visible. * Is there a way to end the slideshow and get back to the page? * -> there is: hit "back" or, on FF, Alt + left arrow to return to the page. ==== Any chance to have ?==== Due to http://meyerweb.com/eric/tools/s5/features.html "Incremental display", example in http://meyerweb.com/eric/tools/s5/s5-intro.html on page 9, s5 is capable to "show the bullet points one at a time". Is there a way to have this for the s5 plugin? --- [[user>coastGNU|Thomas Templin]] //2016-04-10 21:30//