Tags:
create new tag
, view all tags
How can I access variables such as the name of the current web within a plugin? Statements like $myweb=&TWiki::Prefs::getPreferencesValue("WEB") or $myweb=&TWiki::Prefs::getPreferencesValue("MYPLUGIN_WEB") don't work and I could not find an appropriate get... function in TWiki::Func.pm.

-- FrankThommen - 04 Mar 2003

The name of the current web and the web where the Plugin is installed are passed to the initPlugin function and are available in the Plugin as $web and $installWeb, respectively.

-- PeterThoeny - 06 Mar 2003

Topic revision: r2 - 2003-03-06 - 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.