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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-03-06 - 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.