External Link Plugin
This plugin will mark external links so users don't leave your site by accident.
Introduction
This plugin will mark external links so users don't leave your site by accident.
This will only work for forced links marked up using
[[...]]-syntax - like i.e.
[[http://external.site.com][an external site]]
URLs that are just written in straight text (i.e. just
http://external.site.com) are left untouched.
Syntax Rules
Remember to use the
[[...]] forced link syntax.
Plugin Settings
- One line description, is shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = This plugin will mark external links so users don't leave your site by accident.
- External link mark (besides images it is also possible to use HTML entity characters like e.g. "»" (
»))
- Set MARK =
- Debug plugin: (See output in
data/debug.txt)
Plugin Installation Instructions
This plugin is installed by default with a TWiki release. You should not need to install the plugin unless it is for an upgrade.
- Download the ZIP file from the Plugin web (see below)
- Unzip
ExternalLinkPlugin.zip in your twiki installation directory. Content: | File: | Description: |
data/TWiki/ExternalLinkPlugin.txt | Plugin topic |
lib/TWiki/Plugins/ExternalLinkPlugin.pm | Plugin Perl module |
pub/TWiki/ExternalLinkPlugin/external.gif | Default graphic for external link mark |
- Visit
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
Testing your installation
To test if the plugin is correctly installed, check the following links.
External links
The links in the "If plugin enabled"-column should be marked with a %EXTERNALLINKPLUGIN_MARK% if the plugin is functioning correctly.
Local links
Not surprisingly,
ExternalLinkPlugin won't mark local links as being external. The
following links should not be marked with a %EXTERNALLINKPLUGIN_MARK%:
Plugin Info
Related Topics: TWikiPreferences,
TWikiPlugins