Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.foswiki.org/trunk/WebLinkPlugin@10105 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
MichaelDaum
authored and
MichaelDaum
committed
Nov 29, 2010
1 parent
34ef1fa
commit e54b4bb
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%META:TOPICINFO{author="micha" comment="" date="1291041934" format="1.1" version="2"}% | ||
#VarWEBLINK | ||
---+++ WEBLINK | ||
* create a link to a web | ||
* Syntax: =%<nop>WEBLINK{web="..." name="..."}%= | ||
* Supported parameters: | ||
| *Parameter:* | *Description:* | *Default:* | | ||
| ="web"= | name of the web to link to | BASEWEB | | ||
| =name="..."= | name to display instead of the web name | BASEWEB (its tail in case it is a subweb) | | ||
| =format="..."= | format string for the web link | <code><a class="webLink $marker" href="$url" title="%<nop>ENCODE{"$tooltip" type="html"}%">$title</a></code> | | ||
| =marker="..."= | string to be inserted into the format string if the web link points to the current web | current | | ||
| =class="..."= | css class used within the web link | webLink | | ||
|
||
The following variables can be used in the format string: | ||
* $web: full qualified name of the web to link to | ||
* $topic: name of the topic to link to, defaults to <nop>%HOMETOPIC% | ||
* $title: title of the <nop>WebHome topic; this is either the topic name or its title as returned when Foswiki:Extensions/DBCachePlugin is installed | ||
* $name: name of the web, that is the tail of the web specification with all parent webs stripped off | ||
* $url: url for the link | ||
* $marker: the marker set to the "marker" string if the link points to the current web | ||
* $tooltip: tooltip for the link, mostly used in a =title= argument of an anchor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
data/System/WebLinkPlugin.txt 0644 | ||
data/System/VarWEBLINK.txt 0644 | ||
lib/Foswiki/Plugins/WebLinkPlugin/Core.pm 0644 | ||
lib/Foswiki/Plugins/WebLinkPlugin.pm 0644 |