[dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Gunther Pilz <dokuwiki@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 29 Jan 2007 03:22:30 +0100
Chris Smith schrieb:
Personally, I would hook into the ACTION_ACT_PREPROCESS or
ACTION_ACT_UNKNOWN events.
Yes, so did I - thanks.
I guess the sensible thing is to check for your $_POST var inside your
plugin's register() method.
Yes, I do so.
I mean if I register a hook on the HTML_EDITFORM_INJECTION it's somehow
clear, that I want to deal with some extra form values. So in my opinion
there should be an easy way to get the form input and not such a long
way round by using the DOKUWIKI_STARTED event all the time.
So, no, I don't think there is a need for further alternatives to
handle $_POST vars. :)
And I still do ;).
I mean it's getting somehow a kind of useless if you have events for
every little piece on the one hand, but no corresponding onces on the
other and always have to deal with the big global events like
DOKUWIKI_STARTED. (I hope it's understandable what I've tried to explain
- my English didn't become better - sorry).
I guess I don't see why it needs another special event. DokuWiki form
handling is all determined by the action - ie. $ACT. If you want to
handle an action, process $ACT. There are several events that enable
that.
Chris
You are right so far ;). The problem (for me) is that if you aren't
totally familiar with the way things go round in DW, it's hard to find
your way ;). It's more a matter of the logic. Logically seen it's more
clearly if you have an "action" and a "reaction" where you can "see"
their relation by name ;).
Now, after your tips and hints I got it (for this time ;)).
So there is a glimmer of hope I'll get it next time all by myself.
Cheers
Gunther
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] HTML_EDITFORM_INJECTION event
- From: Gunther
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Chris Smith
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Gunther Pilz
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Chris Smith
Other related posts:
- » [dokuwiki] HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- » [dokuwiki] Re: HTML_EDITFORM_INJECTION event
I guess the sensible thing is to check for your $_POST var inside your plugin's register() method.
I guess I don't see why it needs another special event. DokuWiki form handling is all determined by the action - ie. $ACT. If you want to handle an action, process $ACT. There are several events that enable that.I mean if I register a hook on the HTML_EDITFORM_INJECTION it's somehow clear, that I want to deal with some extra form values. So in my opinion there should be an easy way to get the form input and not such a long way round by using the DOKUWIKI_STARTED event all the time.So, no, I don't think there is a need for further alternatives to handle $_POST vars. :)And I still do ;). I mean it's getting somehow a kind of useless if you have events for every little piece on the one hand, but no corresponding onces on the other and always have to deal with the big global events like DOKUWIKI_STARTED. (I hope it's understandable what I've tried to explain - my English didn't become better - sorry).
Chris
- [dokuwiki] HTML_EDITFORM_INJECTION event
- From: Gunther
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Chris Smith
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Gunther Pilz
- [dokuwiki] Re: HTML_EDITFORM_INJECTION event
- From: Chris Smith