[dokuwiki] Re: [PATCH] New request-parameter redirect_id
- From: Christopher Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 20 Aug 2008 14:26:59 +0100
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
- Follow-Ups:
- [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- From: Christopher Smith
- References:
- [dokuwiki] [PATCH] New request-parameter redirect_id
- From: Michael Hamann
Other related posts:
- » [dokuwiki] [PATCH] New request-parameter redirect_id
- » [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- » [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- » [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- » [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- » [dokuwiki] Re: [PATCH] New request-parameter redirect_id
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
- [dokuwiki] Re: [PATCH] New request-parameter redirect_id
- From: Christopher Smith
- [dokuwiki] [PATCH] New request-parameter redirect_id
- From: Michael Hamann