plugin:talkpage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:talkpage [2016-01-24 14:17] – version upped andi | plugin:talkpage [2022-08-24 12:32] (current) – Compatible with Igor 194.81.223.66 | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : andi@splitbrain.org | email : andi@splitbrain.org | ||
type : syntax | type : syntax | ||
- | lastupdate : 2014-05-21 | + | lastupdate : 2018-11-18 |
- | compatible : Adora Belle | + | compatible : Igor, Hogfather, Greebo, Frusterick Manners, Elenor of Tsort |
depends | depends | ||
conflicts | conflicts | ||
Line 23: | Line 23: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
=== Change Log === | === Change Log === | ||
Line 31: | Line 31: | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | Simply | + | If the template of your choice does not support the [[: |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
Line 37: | Line 37: | ||
The namespace where talk pages are stored can be set in the config manager. It defaults to '' | The namespace where talk pages are stored can be set in the config manager. It defaults to '' | ||
- | ===== Discussion ===== | ||
- | I would be super handy if this plugin could generate the discussion link in the floating page tools with the TEMPLATE_PAGETOOLS_DISPLAY event. I know it should be fairly easy but I don't know how to do it unfortunately. --- [[user> | ||
- | |||
- | === Several Meta Pages === | ||
- | I added some lines to have multiple meta-pages related to one article page. Here it is an additional data page which could provide rawdata to use for example with the include plugin. Maybe some more people are interested? | ||
- | <code php> | ||
- | <?php | ||
- | /** | ||
- | * DokuWiki Plugin talkpage (Syntax Component) | ||
- | * | ||
- | * @license GPL 2 http:// | ||
- | * @author | ||
- | */ | ||
- | |||
- | // must be run within Dokuwiki | ||
- | if (!defined(' | ||
- | |||
- | if (!defined(' | ||
- | if (!defined(' | ||
- | if (!defined(' | ||
- | |||
- | require_once DOKU_PLUGIN.' | ||
- | |||
- | class syntax_plugin_talkpage extends DokuWiki_Syntax_Plugin { | ||
- | public function getType() { | ||
- | return ' | ||
- | } | ||
- | |||
- | public function getPType() { | ||
- | return ' | ||
- | } | ||
- | |||
- | public function getSort() { | ||
- | return 444; | ||
- | } | ||
- | |||
- | |||
- | public function connectTo($mode) { | ||
- | $this-> | ||
- | } | ||
- | |||
- | public function handle($match, | ||
- | $data = array(); | ||
- | |||
- | return $data; | ||
- | } | ||
- | |||
- | public function render($mode, | ||
- | global $INFO; | ||
- | if($mode != ' | ||
- | |||
- | $renderer-> | ||
- | |||
- | $talkns = cleanID($this-> | ||
- | $datans = cleanID($this-> | ||
- | |||
- | if(substr($INFO[' | ||
- | // we're on the talk page | ||
- | $goto1 = substr($INFO[' | ||
- | $goto2 = $datans .':' | ||
- | $text1 = ' | ||
- | $text2 = ' | ||
- | }elseif(substr($INFO[' | ||
- | // we're on the data page | ||
- | $goto1 = substr($INFO[' | ||
- | $goto2 = $talkns .':' | ||
- | $text1 = ' | ||
- | $text2 = ' | ||
- | }else{ | ||
- | // we are on article page | ||
- | // we want to the talk or data page | ||
- | $goto1 = $talkns .':' | ||
- | $goto2 = $datans .':' | ||
- | $text1 = ' | ||
- | $text2 = ' | ||
- | // | ||
- | // $text = ' | ||
- | //}else{ | ||
- | // $text = ' | ||
- | //} | ||
- | } | ||
- | |||
- | $renderer-> | ||
- | |||
- | return true; | ||
- | } | ||
- | } | ||
- | |||
- | // vim: | ||
- | </ | ||
- | |||
- | --- //Boris 2016/01/17 20:19// |
plugin/talkpage.1453641440.txt.gz · Last modified: 2016-01-24 14:17 by andi