[TYPO3-dev] th_mailformplus: Two forms on one page
Patrick Kollodzik
patrick at work.de
Wed Apr 22 09:40:58 CEST 2009
Steffen 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
More information about the TYPO3-dev
mailing list