[dokuwiki] Re: [PATCH] New request-parameter redirect_id


On 19 Aug 2008, at 13:47, Michael Hamann wrote:

Hi,

as I want to redirect a user after his saving a page to a different page (from where the page he edited is included), I introduced a new parameter redirect_id that is stored in $RID and used in act_save(). I've created a patch with darcs and attached it.

The patch may be applied to the repo and/or discussed (or ignored ;) ).

Regards,
Michael Hamann


Michael,

Rather than editing the core, you are probably better off implementing this as an action plugin.

You can use:
- HTML_EDITFORM_OUTPUT to add your hidden field to the form
- DOKUWIKI_STARTED to detect the returning field and if necessary redirect to the page it indicates


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

Other related posts: