[dokuwiki] Re: [dokuwiki]

  • From: Redeeman <redeeman@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 22 Oct 2005 19:29:28 +0200

i wrote a php wikify plugin for dokuwiki. it does so that you can use
<phpwikify> and the stuff will then be run through the parser, so that
if you output [[namespace:pagename]] from your phpscript dokuwiki will
then display it as link.

it has one disadvantage though, if it takes from a database and creates
a link collection or something, the dokuwiki cache is kinda a
showtopper.

actually.. i think dokuwiki itself should be changed a little, so that
in the phpok variable, you can set to 1 if you wanna allow php, and 2 if
you also want to allow it to be parsed, and then allow for a <php
wikify> parameter in <php>, and if that is inthere, cache is disabled or
rebuild on each load.


On Sat, 2005-10-22 at 10:25 +0100, Chris Smith wrote:
> Ignazio Mostallino wrote:
> > I'd like to know if there is some way I can use links with post or get 
> > in dokuwiki pages, and of course if I can even get the value of the 
> > post and get in the target page... I'd like to embed some php scripts 
> > in my dokuwiki but I am facing this problem with get and post...
> Hi Ignazio,
> 
> I have never tried to do this, but I have made forms for plugins, so I 
> presume the same constraints apply.
> 
> - if the link's target or the form's action url is an other Dokuwiki 
> page it should be created with wl($id) function (iirc, inc/common.php).  
> where $id is the page name, the same as you would use write it for an 
> internal link on a page (e.g. [[namespace:namespace:pagename]]).
> - use different names from Dokuwiki for your $_GET, $_POST & $_REQUEST 
> vars.  I guess the simplest way to do this is to prefix all your names 
> with some unlikely string (e.g. "my_").
> 
> For more ideas take a look at those parts of Dokuwiki that put forms on 
> the screen
> - login, registration (inc/html (output), inc/auth (form processing))
> - acl  (lib/plugins/acl/admin.php)
> - plugin manager (lib/plugins/plugin/admin.php)
> 
> I hope this helps.
> 
> Cheers,
> 
> Chris

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: