plugin:relativelinks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:relativelinks [2008-03-07 11:56] – 155.198.108.162 | plugin:relativelinks [2017-10-28 15:10] (current) – turnermm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== relativelinks plugin ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : public [at] ssbd [dot] net | ||
+ | type : Syntax | ||
+ | lastupdate : 2008-03-07 | ||
+ | compatible : | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : links namespace | ||
+ | ---- | ||
+ | |||
+ | ====== Description ====== | ||
+ | |||
+ | Whether it is of general interest to the wider community or not, I would prefer it if DokuWiki' | ||
+ | |||
+ | |||
+ | |||
+ | ====== Discussion ====== | ||
+ | |||
+ | "Works for me, does what I want" ;-) | ||
+ | |||
+ | Hmm, doesn' | ||
+ | |||
+ | < | ||
+ | $event-> | ||
+ | </ | ||
+ | |||
+ | Updated the regexp so that it doesn' | ||
+ | |||
+ | ====== Code ====== | ||
+ | |||
+ | <code php syntax.php> | ||
+ | <? | ||
+ | /** | ||
+ | * Relative Linking Plugin | ||
+ | * | ||
+ | * @author Andy Turner < | ||
+ | */ | ||
+ | |||
+ | if(!defined(' | ||
+ | if(!defined(' | ||
+ | require_once(DOKU_PLUGIN.' | ||
+ | |||
+ | class action_plugin_relativelinks extends DokuWiki_Action_Plugin { | ||
+ | |||
+ | /** | ||
+ | * return some info | ||
+ | */ | ||
+ | function getInfo(){ | ||
+ | return array( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Register its handlers with the DokuWiki' | ||
+ | */ | ||
+ | function register(Doku_Event_Handler $controller) { | ||
+ | $controller-> | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Stick a colon in front of links... that's all :D | ||
+ | * | ||
+ | * @author Andy Turner <public [at] ssbd [dot] net> | ||
+ | */ | ||
+ | function _hookrellink(& | ||
+ | $event-> | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
plugin/relativelinks.txt · Last modified: 2017-10-28 15:10 by turnermm