plugin:externallink
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:externallink [2010-10-10 14:34] – downloadurl lupo49 | plugin:externallink [2022-01-18 23:16] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Externallink | + | ====== Externallink |
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
author | author | ||
- | email : oiv-plugins@valjakko.net | + | email : otto@valjakko.net |
type : Syntax | type : Syntax | ||
lastupdate : 2005-08-01 | lastupdate : 2005-08-01 | ||
Line 19: | Line 18: | ||
===== Description ===== | ===== Description ===== | ||
- | With this [[plugins|plugin]] you can easily insert a link to pages on same server, but outside DokuWiki. | + | With this plugin you can easily insert a link to pages on same server, but outside DokuWiki. |
===== Format ===== | ===== Format ===== | ||
Line 34: | Line 33: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
- | Install with Plugin Manager from [[http:// | ||
- | Or manually | ||
- | |||
- | Create a new folder '' | ||
'' | '' | ||
- | <code php> | + | < |
<?php | <?php | ||
/** | /** | ||
- | * Plugin | + | * Plugin |
* | * | ||
* @license | * @license | ||
Line 52: | Line 48: | ||
*/ | */ | ||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
/** | /** | ||
Line 72: | Line 65: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 94: | Line 87: | ||
* Handle the match | * Handle the match | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
$match = substr($match, | $match = substr($match, | ||
$match = explode(" | $match = explode(" | ||
Line 103: | Line 96: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
if($mode == ' | if($mode == ' | ||
$text=$this-> | $text=$this-> | ||
Line 113: | Line 106: | ||
- | function _externallink(&$renderer, $url, $name = NULL) { | + | function _externallink($renderer, |
global $conf; | global $conf; | ||
// Just some basic cleaning | // Just some basic cleaning | ||
Line 151: | Line 144: | ||
} | } | ||
- | ?> | ||
</ | </ | ||
Line 199: | Line 191: | ||
-- // | -- // | ||
+ | ---- | ||
+ | Plugin doesn' | ||
+ | Url leads to Dokuwiki basedir, but not web server root dir | ||
+ | |||
+ | ---- | ||
+ | Fix functions arguments in '' | ||
+ | <code php> | ||
+ | function handle($match, | ||
+ | function render($mode, | ||
+ | </ | ||
+ | -- // |
plugin/externallink.1286714082.txt.gz · Last modified: 2010-10-10 14:34 by lupo49