|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
th_mailformplus: Two forms on one pageHello,
ich have a annoying problem with the extension th_mailformplus (4.0.13). I have one page were i want to insert two different forms. To do that i have two content elements with with the preferences for each form. The problem is, if i submit one form the error messages of the second form are displayed. Is there the possibility tell mailformplus that only the submited form should be checked ? Best Regards, Patrick Kollodzik _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
|
|
Re: th_mailformplus: Two forms on one pageHi,
Patrick Kollodzik schrieb: > Hello, > > ich have a annoying problem with the extension th_mailformplus (4.0.13). > I have one page were i want to insert two different forms. To do that i > have two content elements with with the preferences for each form. > > The problem is, if i submit one form the error messages of the second > form are displayed. Is there the possibility tell mailformplus that only > the submited form should be checked ? > > Best Regards, Patrick Kollodzik this problem exists for most plugins handling GP-data. Each plugin reacts on this data. I don't see a solution without manipulating ext vg Steffen _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
|
|
Re: th_mailformplus: Two forms on one pageSteffen Kamper wrote:
> Hi, > > this problem exists for most plugins handling GP-data. Each plugin > reacts on this data. > > I don't see a solution without manipulating ext > > vg Steffen Hi, I feared that would be the case .... To make it work i modified the th_mailfomrplus/pi1/class.thmailformplus_pi1.php To the line 2219 and 3951 i added a new global marker, so it is possible to send the content_uid with the form. $globalMarkerArray['###CONTENT_ID###'] = $this->cObj->data['uid']; The line 483 i changed from: if ($this->get_post['SUBMITTED'] || $this->get_post['submitted']) to if (($this->get_post['SUBMITTED'] || $this->get_post['submitted']) && ($this->cObj->data['uid'] == $this->get_post['content_id'] || $this->cObj->data['uid'] == $this->get_post['CONTENT_ID'])) { With the normal singlepage form i works but i could't test it with a multipage form regards, Patrick Kollodzik _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
|
|
Re: th_mailformplus: Two forms on one page>> this problem exists for most plugins handling GP-data. Each plugin
>> reacts on this data. >> >> I don't see a solution without manipulating ext >> >> vg Steffen > > Hi, > > I feared that would be the case .... > > To make it work i modified the > th_mailfomrplus/pi1/class.thmailformplus_pi1.php > With Mailformplus *MVC* [1] it is rather easy to cope with this issue. The default prefix is "mailformplusplus" but you can override this value by TypoScript for each form: plugin.F3_MailformPlusPlus.settings.predef.form_1 = prefixform1 plugin.F3_MailformPlusPlus.settings.predef.form_2 = prefixform2 No idea how simple is it to "migrate" from Mailformplus to Mailformplus MVC... I would be curious. kindly, Fabien [1] http://typo3.org/extensions/repository/?tx_terfe_pi1[view]=search&no_cache=1&tx_terfe_pi1[sword]=mailformplusplus _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
| Free embeddable forum powered by Nabble | Forum Help |