Tags:
create new tag
, view all tags

Question

There are new issues in writing Add Ons in TWiki 4. In particular the use of the SESSION.

I have the basics sorted, but find surprises. For instance TWiki::Func::expandCommonVariables does not expand the variables set in WebPreferences for the Web. I think that is because the web is not defined in the SESSION. What is the name of the variable that stores the webName in SESSION? What other variables need to be set to avoid inconsistencies?

I run the Add On outside the web server (using make). and do the setup of the Add-on from a ENV variable.

Is there documentation that helps developing Add ons?

Is there a good example of a working Add On for TWiki 4. I am using GenPDF, but that does not use templates.

Update 21 October 2006

I have made progress. But I am still looking for better info on the available SESSION variables in twiki.

getSessionValue and setSessionValue will get and set session values.

Is there a way of finding out which Session variable are available at any point in time?

1 November: another clue

Hah, i just discovered the PERLDOC plugin. PERLDOC{"TWiki"} gives more information. Not quite what i want, but maybe someone can point me to where I can find the answer to my question above?

%PERLDOC{"TWiki"}%

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Unix
Web server: Apache
Perl version: 5.8
Client OS: Windows
Web Browser: Firefox
Categories: Documentation, Add-Ons

-- BramVanOosterhout - 28 Sep 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

What Add Ons are your trying to develop? Why are you trying to write an addon, and not a plugin? Did you look at the code of PublishContrib, which generates PDF files? TWiki::Client publishes the getSessionValues method that lets you to get a hash map of session variables.

-- CrawfordCurrie - 28 Nov 2006

 
Change status to:
Topic revision: r7 - 2006-12-29 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.