Tags:
create new tag
view all tags

Question

Hello, I would like to create a digital sign that basically goes through a slide show. There doesn't appear to be any automated slide progression in the current slideshow modules, so I'm starting to use a JavaScript script: http://www.dynamicdrive.com/dynamicindex14/interslide.htm I want my staff to be able to easily add info, to the slides and so I tried setting up a page that declared variable:

* Set NUMBER_OFSLIDES = 4

* Set SLIDEONE_IMAGE = student.jpg

* Set SLIDEONE_TITLE = New student RA's!

* Set SLIDEONE_BODY = Please visit the website to see the list of new student residence advisers.

* Set SLIDETWO_IMAGE = etc, etc...

(P.S. I know the format is 3spaces asterisk 1space and then the set command)

When I go into the Web Preferences and add:

%INCLUDE{StaffGeneral.DigitalSignData}%

or

%INCLUDE{%StaffGeneral%.DigitalSignData}%

...the variable show up OK on that page, but the variables don't have any value when I try and use them on that web. If I manually declare the variables in the Web Preferences page it works fine.

Sorry if I'm missing something obvious, but please let me know if I'm doing something wrong.

If you have a better suggestion about how to get the data into the slides using Twiki and a fairly easy input method for users, please let me know.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version: 5.8.8
Client OS: XP
Web Browser: IE6 and Firefox 2.X
Categories: Platform, Javascript

-- MontanaQuiring - 07 Mar 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I found this thread: http://twiki.org/cgi-bin/view/Support/IncludeFailsForPrefs So I'll play around with workaround they have listed there but is seems pretty kludgey. Does anyone have any suggestions about how I could get data into the slideshow? Thanks.

-- MontanaQuiring - 07 Mar 2007

You can't INCLUDE other preferences settings into the WebPreferences. You would need to define them directly in WebPreferences.

As an idea, an alternative is to use SpreadSheetPlugin's $SET() and $GET() .

-- PeterThoeny - 08 Mar 2007

Hmmm?... I've tried following the advice in the link above and in a topic typed: %CALC{$SET(ASLIDESHOW_IMAGE1, building01.jpg)}% When I include that topic in the web preferences it still doesn't work. frown Any advice or criticism, please?

-- MontanaQuiring - 08 Mar 2007

Here is an example (view raw to see how this works):

  • Set a variable:
  • Use the variable: smile.gif

You can use the variable anywhere you like, also in INCLUDEd topics. Make sure that you set the variable before you use it.

-- PeterThoeny - 08 Mar 2007

I think I was typing up my post while you were typing yours, Peter. smile

Am I using the SpeadSheetPlugin incorrectly?

On the Topic that I'm wanting to use the $Get on I've entered: %ALLVARIABLES% into the page but don't see the variable listed. Here's what I've done (just so it's clear):

-the Web for all of these topic are the same.

-I've created a topic called DigitalSignData and in that topic I've entered: %CALC{$SET(ASLIDESHOW_IMAGE1,building01.jpg)}%

-I've entered this: %INCLUDE{%StaffGeneral%/DigitalSignData}% in the web preferences of the Web that topics are in as well as trying it in the Twiki and Main preferences (just to make sure).

-I created a topic called DigitalSignUC and in that topic enter: %CALC{$GET(ASLIDESHOW_IMAGE1)}%

Hold the boat...

If I enter: %INCLUDE{%StaffGeneral%/DigitalSignData}% in the DigitalSignUC topic it works!

It makes me think that the preferences topics will not capture the preferences from topics using %INCLUDE, even when using the %CALC... command.

-- MontanaQuiring - 08 Mar 2007

And again we were typing our responses at the same time. smile

-- MontanaQuiring - 08 Mar 2007

mmm, not quite 2 months, but i'm going to assume this has been worked out smile

-- SvenDowideit - 30 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-04-30 - SvenDowideit
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.