It's better when it's simple

User Tools

Site Tools


chain Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Execute a sys command and create output file in a current directory for a next chain command.

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to format

Download and Installation

For detailed information and download instructions see the home page.

Applying wiki formatting to imported text

So I've been working the past couple of days trying to do someting Dokuwiki wasn't originally designed to do - import live data and apply wiki formatting. I've looked at about every possible plugin to get external data in, but none of them will render wiki syntax. Here is a snippet from the syntax.php (I added a new case for the oext section around line 200):

          switch ($config[$mode]['oext'])
            case 'wik' :
              $myinfo = null;
              $myrev = null;
              $myid = null;
              $renderer->doc .= p_render('xhtml',p_get_instructions(io_readWikiPage(&$OutFileName,$myid,$myrev)),$myinfo);

            case 'out' :
              $renderer->doc .= "<pre>$output</pre>";

Here is the section of my default.php I am using for getting wiki-code text from a wget link:

$conf['importwikitext']=  array('name'    => 'Import Dokuwiki-formatted text',
    'xhtml' => array('iext'    => 'tmp',
                     'oext'    => 'wik',
                     'pre'     => "",
                     'post'    => "",
                     'command_wintel' => '', 
                     'command' => '/usr/bin/wget -O - -i @InputFile@ 2>/dev/null'));

And here is my dokuwiki page code:

<chain alias=importwikitext output=wikitext render=yes>

- Jared Meeker (

plugin/chain.txt · Last modified: 2022-02-13 18:23 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki