create new tag
, view all tags
After I did the Main.TWikiPlatformPresentation on Wednesday I was looking for a way to present the M$ PowerPoint slides in a "web presentable way". PowerPoint has an HTML export function, but the code is just incredible large, generates way to many files and requires IE or Netscape.

Instead I was looking for a simple way that works with any browser. PowerPoint has an export to GIF function. Uploading all files to a Plugins.TWiki topic is easy, but how can we click through the files? We need two things:

  • I created a new variable (not yet checked into Alpha) that gets a CGI parameter: %URLPARAM{"name"}%. I.e. %URLPARAM{"skin"}% returns plain for a .../view/Codev/TWikiSlideShowEngine?skin=plain URL. Is for the skin parameter; click on the Print link below and you will see.
  • The TWikiSpreadSheet plugin do do some calculations.

With that you can create a slide show topic and click through the slides.

Here is the HTML code that calculates the previous slide number, current slide number and next slide number. It does check for boundaries.

<!-- start hiding
end hiding -->

Note: Remove the "-" from each variable, i.e. write %CALC... instead of %-CALC....

  • To enter for each new slide show topic:
    • The number of slides you have, in $T(R1:C3)
    • The GIF file prefix (before the consecutive number), in $T(R1:C5)
    • The GIF file suffix, in $T(R1:C7)
  • These values get calculated:
    • The previous slide number, in $T(R5:C4)
    • The current slide number, in $T(R5:C5)
    • The next slide number, in $T(R5:C6)

Add to above HTML code the slide text:

<table border="0" cellspacing="0" cellpadding="0">
<tr><td align="center">
*[[%-SCRIPTURL%/view%-SCRIPTSUFFIX%/%-WEB%/%-TOPIC%?skin=plain&slide=1][&nbsp;1&nbsp;]]* &nbsp; &nbsp;
*[[%-SCRIPTURL%/view%-SCRIPTSUFFIX%/%-WEB%/%-TOPIC%?skin=plain&slide=%-CALC{"$T(R5:C4)"}%][&nbsp;&lt;&lt;&nbsp;]]* &nbsp; &nbsp;
*Slide %-CALC{"$T(R5:C5)"}%* &nbsp; &nbsp;
*[[%-SCRIPTURL%/view%-SCRIPTSUFFIX%/%-WEB%/%-TOPIC%?skin=plain&slide=%-CALC{"$T(R5:C6)"}%][&nbsp;&gt;&gt;&nbsp;]]* &nbsp; &nbsp;
</td></tr><tr><td align="center">
<img src="%-PUBURLPATH%/%-WEB%/%-TOPIC%/%-CALC{"$T(R1:C5)"}%%-CALC{"$T(R5:C5)"}%%-CALC{"$T(R1:C7)"}%">

And off you go!

-- PeterThoeny - 01 Jun 2001

We solved the same problem by adding a simple "BUTTON" tag that creates standard button images for "NEXT" and "PREVIOUS" buttons. (%BUTTON{image=next,link=WikiTopic}%. We created a sequence of topics using the powerpoint-generated GIFs and linked them using these buttons to create a browsable presentation

In wikicfg.pm:

$text =~ s/%BUTTON{(.*?)}%/&handleButton($1)/geo;

sub handleButton
    my( $attributes ) = @_;
    my $img = extractNameValuePair( $attributes, "image" );
    my $link = extractNameValuePair( $attributes, "link" );
    return "<a href=\"$link\"><img src=\"http://www.twiki.org/p/pub/images/$img.gif\" border=\"0\">";

Not as complete a solution and a pain to add all those links, but OK for short training presentations.

-- CrawfordCurrie - 04 Jun 2001

  • I am investigating building a powerpoint WebService that can return html given a ppt file:


  • Can you post the powerpoint version of your slideshow - I would like to post it around my firm.

Thanks. M.

-- MartinCleaver - 04 Jun 2001

The latest TWikiAlphaRelease has now the new %URLPARAM{"name"}% variable.

-- PeterThoeny - 08 Jun 2001

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-02-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.