%META:TOPICINFO{author="BaseUserMapping_333" date="1240572966" format="1.1" reprev="1.3" version="1.3"}% ---+!! Slide Show Plugin Converts a topic with headings into a slideshow. %TOC% ---++ Introduction There is already a defacto standard for presentations, why this plugin? This plugin makes sense for organizations that do already have lots of content in Foswiki: It is easy to create a web based presentation that contains many links to related content. The plugin does not try to compete with the bells and whistles of the other presentation program, but the markup of Foswiki and other plugins like Foswiki:Extensions/ChartPlugin, Foswiki:Extensions/GaugePlugin, Foswiki:Extensions/SpreadSheetPlugin, Foswiki:Extensions/FoswikiDrawPlugin can be used to create appealing presentations. Any topic with headings can be converted into a slideshow. Each slide starts with a ="---++"= heading. There are two modes to view a topic: * Normal topic view mode: Headings and text is shown in the usual Foswiki rendering, representing the outline of the slideshow. This mode is useful to print handouts. * Presentation mode: Each heading with text is shown as a slide; the format is based on a slide template. Navigation buttons are added to go to the "First", "Previous", and "Next" slide. Slide navigation is quick because it is done with anchor jumps to the same page. You can start the presentation by clicking on the "Start presentation" button. ---++ Syntax rules ---+++ How to create a slideshow * Start with =%SLIDESHOWSTART%= * Use the optional =template= parameter to specify your own slide template topic, e.g. =%SLIDESHOWSTART{ template="MyOwnSlideTemplate" }%= * Create the slides. Start each slide with a ="---++"= heading and add text like paragraphs, bullets, tables and images. * *Hint:* Make sure to keep each slide short enough so that you do not need to scroll to see all text of a slide during the presentation. * *Note:* You can use any heading level you like, but use the same for all slides. * End your slideshow with =%SLIDESHOWEND%= ---+++ How to create your own slide template To create your own template topic, copy the "Default Slide Template" section below into your own slide template topic and customize it to your needs. It can be activated as the default template in the plugin's =TEMPLATE= setting, or per slideshow with the =%SLIDESHOWSTART{ template="MyOwnSlideTemplate" }%= setting. * Use a DIV or an HTML table that defines a slide. For example, create one row for the slide title, another one for the slide text. * These keywords can be used: | *Keyword* | *What it means* | | =%SLIDETITLE%= | The heading of the slide | | =%SLIDETEXT%= | The text of the slide | | =%SLIDECOMMENT%= | The comment of the slide (optional; appended to slide of missing) | | =%SLIDENUM%= | The current slide number | | =%SLIDEMAX%= | The last slide number | * And for navigation buttons: | =%SLIDENAV%= | The navigation buttons for "First", "Previous", "Next" slide | | =%SLIDENAVALL%= | The navigation buttons for "First", "Previous", "Next", "Last" slide | | =%SLIDENAVFIRST%= | The navigation button for "First slide" | | =%SLIDENAVPREV%= | The navigation button for "Previous slide" | | =%SLIDENAVNEXT%= | The navigation button for "Next slide" | | =%SLIDENAVLAST%= | The navigation button for "Last slide" | * Only text between =%STARTINCLUDE%= and =%STOPINCLUDE%= is used for the template. ---++ Example This is a short example of a slideshow. You should see a "Start presentation" button if this plugin is installed: %SLIDESHOWSTART% ---++ Introduction This is slide one. %TOC% ---++ Hamlet meets his father's ghost * Hamlet learns that his father was killed by his brother Claudius and Queen Gertrude. * Claudius has quickly become king. ---++ This is rather upsetting * The ghost demands revenge. * Hamlet agrees. * His friends swear to keep what they have seen a secret. ---++ Meanwhile... * the King's advisor Polonius meets his daughter Ophelia. Hamlet has upset her. * Hamlet is acting mad ---+++ Comments * This text is not shown in the slide if HIDECOMMENTS is set to on. ---++ Please tune this template Tune the look of this template by using CSS ( slideshow.css attached to this document) %SLIDESHOWEND% This text is not part of the slideshow ---++ %TOPIC% preferences Plugin settings are stored as [[%SYSTEMWEB%.PreferenceSettings][preference settings]]. To reference a plugin setting write ==%<plugin>_<setting>%==, i.e. ==%SLIDESHOWPLUGIN_SHORTDESCRIPTION%== * One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: * Set SHORTDESCRIPTION = Create web based presentations based on topics with headings. * Debug plugin: (See output in =data/debug.txt=) * Set DEBUG = 0 * Default template for slides: * Set TEMPLATE = SlideShowPlugin * Label for Comments section * Set COMMENTS_LABEL = Comments * Hide text starting with a =---+++ %COMMENTS_LABEL%= heading: * Set HIDECOMMENTS = ---++ Default slide template You can create a new topic(MyWeb.SlidesTemplate) somewhere and adding =STARTINCLUDE your template STOPINCLUDE= to it. Afterwards, you can add =%SLIDESHOWSTART{template="MyWeb.SlidesTemplate"}%= to show you presentations with this new template. %BR% ---+++ Customizing the Look of you presentation Just customize the attached slideshow.css file to improve the view ---+++ Current default template The part between the rulers defines the default format of a slide: %STARTINCLUDE%
Page %SLIDENUM% of %SLIDEMAX%
%SLIDENAVALL%

%SLIDETITLE%

%SLIDETEXT%
%SLIDECOMMENT%
%STOPINCLUDE%
---++ Plugin installation instructions *Note:* You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where Foswiki is running. * Download the ZIP file from the Plugin Home (see below) * Unzip ==%TOPIC%.zip== in your Foswiki installation directory. Content: | *File:* | *Description:* | | ==data/System/%TOPIC%.txt== | Plugin topic | | ==lib/Foswiki/Plugins/%TOPIC%.pm== | Plugin Perl module | | ==lib/Foswiki/Plugins/%TOPIC%/SlideShow.pm== | Plugin Perl module | | ==pub/System/*.gif== | Various button image files | * Run the [[%SCRIPTURL{"configure"}%][configure]] script, and enable the plugin in the ={Plugins}= section. * Test above example if the installation was successful. ---++ Plugin info | Author: | Foswiki:Main.EugenMayer, Foswiki:Main.ArthurClemens | | Copyright: | Copyright (C) 2006-2007 Peter Thoeny, peter@thoeny.org and TWiki Contributors; 2008-2009 Foswiki Contributors | | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | | Plugin Version: | 31 Mar 2009 | | Change History: |   | | 31 Mar 2009: | [[Foswiki:Main.GilmarSantosJr][GilmarSantosJr]]: [[Foswiki:Tasks/Item1401]] - Make it work in persistent environments | | 18 Feb 2009: | Fixed =HIDECOMMENTS= to really hide the comment if value is =on= - otherwise the comment is shown in the comments section; added customizable =COMMENTS_LABEL= for all non-English speaking people. Updated default template and css; cleaned up code: now uses a =cover= instead of a =skin= so the style of the installed skin is used (unless redefined in the css file); use a custom template; when in slideshow mode, hide topic text; removed extraneously generated spaces; improved error messages; from the button "End presentation" link back to the start button. | | 05 Feb 2009: | Updated graphics; made html and css validate. | | 21 Jan 2009: | Exchanged the current default skin by something which is not written in totaly broken html and looking acceptable ( still needs an update, still table ugly design..). You can style by CSS now %BR% Tuned the docs a bit| | 16 Dec 2008: | Foswiki version | | 02 Aug 2008: | Fixed corruption of preview | | 29 Sep 2007: | Added %SYSTEMWEB%.VarSLIDESHOWSTART and %SYSTEMWEB%.VarSLIDESHOWEND to have them listed in [[%SYSTEMWEB%.Macros]] | | 12 Feb 2007: | fixed construction of view urls (TWiki:Main/MichaelDaum) | | 19 Nov 2006: | 12011: Preserve URL parameters in slideshow (suggested by TWiki:Main/ThomasWeigert); changed logo in default template to T-logo; fixed warning errors introduced by 1.005 | | 16 Mar 2005: | 1.005 Crawford Currie prepped for Dakar, and fixed multiple evaluation bug | | 21 Nov 2004: | 1.004 Added support for =%SLIDECOMMENT%= template keyword (TWiki:Main/ArthurClemens); added benchmarks | | 21 Mar 2004: | Internal change: Fixed unofficial function call | | 14 Dec 2002: | Added =%SLIDENAVALL%= template keyword; added HIDECOMMENTS setting | | 23 Nov 2002: | Added =%SLIDENAVLAST%= template keyword; using print Skin for presentation mode | | 19 Nov 2002: | Added "Start presentation" and "End presentation" buttons; added =%SLIDENAVFIRST%=, =%SLIDENAVPREV%=, =%SLIDENAVNEXT%= template keywords | | 17 Nov 2002: | Initial version | | CPAN Dependencies: | none | | Other Dependencies: | none | | Perl Version: | 5.008 | | Plugin Home: | http://foswiki.org/Extensions/%TOPIC% | | Support: | http://foswiki.org/Support/%TOPIC% | --- *Related Topics:* %SYSTEMWEB%.DefaultPreferences, %USERSWEB%.SitePreferences, [[%SYSTEMWEB%.Plugins][Plugins]] %META:FILEATTACHMENT{name="next.gif" attachment="next.gif" attr="" comment="Saved by install script" date="1238461707" size="505" stream="GLOB(0x9e665d8)" tmpFilename="/tmp/XIO55ChRY2" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="prev.gif" attachment="prev.gif" attr="" comment="Saved by install script" date="1238461707" size="511" stream="GLOB(0x9e83f40)" tmpFilename="/tmp/xWqsoXF5q0" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="startpres.gif" attachment="startpres.gif" attr="" comment="Saved by install script" date="1238461707" size="1920" stream="GLOB(0x9e82da4)" tmpFilename="/tmp/zU275bufPt" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="endpres.gif" attachment="endpres.gif" attr="" comment="Saved by install script" date="1238461707" size="1852" stream="GLOB(0x9e82e28)" tmpFilename="/tmp/jvzalB11x0" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="first.gif" attachment="first.gif" attr="" comment="Saved by install script" date="1238461707" size="532" stream="GLOB(0x9e83f1c)" tmpFilename="/tmp/SvrLjAnZsN" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="last.gif" attachment="last.gif" attr="" comment="Saved by install script" date="1238461707" size="529" stream="GLOB(0x9e82bf4)" tmpFilename="/tmp/9uicXDkE4t" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="slideshow.css" attachment="slideshow.css" attr="" comment="Saved by install script" date="1238461707" size="835" stream="GLOB(0x9e665f0)" tmpFilename="/tmp/VQ6hsEg8P1" user="BaseUserMapping_333" version="1"}% %META:FILEATTACHMENT{name="logo.gif" attachment="logo.gif" attr="" comment="Saved by install script" date="1238461707" size="1621" stream="GLOB(0x9e66578)" tmpFilename="/tmp/Xmilo3oMyq" user="BaseUserMapping_333" version="1"}%