Skip to content

Commit

Permalink
Item10092: preparing release
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions data/System/VarWEBLINK.txt
@@ -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>&lt;a class="webLink $marker" href="$url" title="%<nop>ENCODE{"$tooltip" type="html"}%">$title&lt;/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

2 changes: 1 addition & 1 deletion data/System/WebLinkPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="micha" comment="" date="1291041934" format="1.1" version="2"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1291041934" format="1.1" version="2"}%
---+!! %TOPIC%
%SHORTDESCRIPTION%

Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/WebLinkPlugin/MANIFEST
@@ -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

0 comments on commit e54b4bb

Please sign in to comment.