Tags:
create new tag
view all tags
---++ TopicVarsPlugin TWiki Plugin This plugin will allow you to create variables in arbitrary topic pages, and not just WebPreferences. You can then refer to those variables from any topic within the same Web or Wiki. (Perhaps a future iteration will support [[TWiki.InterwikiPlugin][Interwiki]] references, but that's probably not likely, unless we use XML-RPC or something to cut down the overhead of getting those values from afar.) ---+++ Syntax Rules * Set a variable:<br /> <nop>* Set VARIABLE_NAME = "some value"<br /> * Use a variable in the same Web:<br /> %<nop>TopicName.VARIABLE_NAME% * Use a variable from a different Web:<br /> %<nop>Webname.TopicName.VARIABLE_NAME% (setting values is done just like in WebPreferences; with six preceeding spaces, an asterisk, and so on). ---+++ <nop>%TOPIC% Settings * One line description, is shown in the [[TWiki.TextFormattingRules][TextFormattingRules]] topic * Set SHORTDESCRIPTION = Set variables in arbitrary topics and refer to them from other topics within the same web * Debug %TOPIC% (see output in <code>data/debug.txt</code>) * Set DEBUG = 0 ---+++ Plugin Installation Instructions * Download the ZIP file from the Plugin web (see below) * Unzip ==%TOPIC%.zip== in your twiki installation directory. Content: | *File:* | *Description:* | | ==data/TWiki/%TOPIC%.txt== | Plugin topic | | ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module | * (Dakar) Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section. * Check this topic here if the installation was successful * Test if the plugin is correctly installed: * Set THE_ANSWER = 42 * You should see the answer here: [%THE_ANSWER%] (%<nop>THE_ANSWER%) * and here: [%TopicVarsPlugin.THE_ANSWER%] (%<nop>TopicVarsPlugin.THE_ANSWER%) * and here: [%TWiki.TopicVarsPlugin.THE_ANSWER%] (%<nop>TWiki.TopicVarsPlugin.THE_ANSWER%) ---+++ Plugin Info | Plugin Author: | %TWIKIWEB%.TrippLilley | | Plugin Version: | 15 Nov 2001 | | Change History: | 15 Nov 2001: Initial version | | CPAN Dependencies: | none | | Other Dependencies: | none | | Perl Version: | 5.0 | | Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% | | Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev | __Related Topics:__ [[TWiki.InterwikiPlugin][InterwikiPlugin]] -- %TWIKIWEB%.TrippLilley - 15 Nov 2001 <br>
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r17
<
r16
<
r15
<
r14
<
r13
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r17 - 2001-11-16
-
TWikiGuest
Home
Site map
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Register User
E
dit
A
ttach
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TopicVarsPlugin
.