Search
TWiki Section
All Sections
Symbolic Sound
TWiki Links
$key
$value
$result
"1"
SKIN
skin
$skin
"gnu"
$host
"http://example.com:80"
$web
"Main"
$topic
"WebNotify"
$script
"view"
$url
"http://example.com:80/cgi-bin/view.pl/Main/WebNotify"
$path
"/cgi-bin"
$template
"oopslocked"
$param1
$param4
"http://example.com:80/cgi-bin/oops.pl/ Main/WebNotify?template=oopslocked¶m1=joe"
"/pub"
$query
$attr
$name
%TEST{ "nameless" name1="val1" name2="val2" }%
{...}
"nameless" name1="val1" name2="val2"
my $noname = TWiki::Func::extractNameValuePair( $text );
my $name1 = TWiki::Func::extractNameValuePair( $text, "name1" );
my $name2 = TWiki::Func::extractNameValuePair( $text, "name2" );
* Set COLOR = red
"MYPLUGIN_COLOR"
my $color = TWiki::Func::getPreferencesValue( "MYPLUGIN_COLOR" );
* Set WEBBGCOLOR = #FFFFC0
my $webColor = TWiki::Func::getPreferencesValue( "WEBBGCOLOR", "Sandbox" );
"0"
"off"
"no"
* Set SHOWHELP = off
"MYPLUGIN_SHOWHELP"
my $showHelp = TWiki::Func::getPreferencesFlag( "MYPLUGIN_SHOWHELP" );
"TWiki"
"User"
$defaultUserName
$loginName
"guest"
$wikiName
"JohnDoe"
"User.JohnDoe"
"jdoe"
$dontAddWeb
$flag
"Sandbox"
$type
"VIEW"
"CHANGE"
"CREATE"
"User.PeterThoeny"
$text
$web.$topic
"PrivateStuff"
"TokyoOffice"
"User.TokyoOffice"
( $date, $loginName, $rev )
( "01 Jan 2003", "phoeny", "5" )
"MyTopic"
"User.MyTopic"
( $oopsUrl, $loginName, $unlockTime )
$oopsUrl
$unlockTime
$lock
1
0
$rev
"5"
"1.5"
$ignorePermissions
$dontNotify
my $oopsUrl = TWiki::Func::setTopicEditLock( $web, $topic, 1 );
if( $oopsUrl ) {
TWiki::Func::redirectCgiQuery( $query, $oopsUrl ); # assuming valid query
return;
}
my $text = TWiki::Func::readTopicText( $web, $topic ); # read topic text
# check for oops URL in case of error:
if( $text =~ /^http.*?\/oops/ ) {
TWiki::Func::redirectCgiQuery( $query, $text );
# do topic text manipulation like:
$text =~ s/old/new/g;
# do meta data manipulation like:
$text =~ s/(META\:FIELD.*?name\=\"TopicClassification\".*?value\=\")[^\"]*/$1BugResolved/;
$oopsUrl = TWiki::Func::saveTopicText( $web, $topic, $text ); # save topic text
TWiki::Func::setTopicEditLock( $web, $topic, 0 ); # unlock topic
TWiki::Func::redirectCgiQuery( $query, $oopsUrl );
NOSEARCHALL
@webs
( "Main", "Know", "TWiki" )
@topics
( "WebChanges", "WebHome", "WebIndex", "WebNotify" )
%VARIABLES%
"Current user is %WIKIUSER%"
"Current user is TWikiGuest"
"*bold* text and =fixed font="
"<b>bold</b> and <code>fixed font</code>"
renderText()
$pre
$label
"notify"
$anchor
"#Jump"
$createLink
"<a href="/cgi-bin/view/Main/WebNotify#Jump">notify</a>"
expandCommonVariables("%SEARCH{...}%" );
"$text"
$time
$format
"31 Dec 2002 - 19:30"
"iso"
"2002-12-31T19:30Z"
"rcs"
"2001/12/31 23:59:59"
"http"
"Thu, 23 Jul 1998 07:21:56 GMT"
$dir
"/twiki/data"
$dir/Web/TopicName
"/htdocs/twiki/pub"
"print"
$filename
TWiki::Func
twiki
%PERLDOC{"TWiki::Func"}%