[TYPO3-project-formidable] "Form inside a renderlet:LISTER" example problems and possible fix

Manuel Rego Casasnovas mrego at igalia.com
Tue Nov 4 08:00:21 CET 2008


Hello,

On Fri, 2008-10-24 at 17:04 -0500, Gary Wong wrote:
> First, I am using v2.0.248
> 
> In this article:
> 
> http://formidable.typo3.ug/typo3-form-news/news/0026-forms-inside-a-renderlet-lister/back/67.html
> 
> I couldn't get the 
> 
>   when="after-init-datahandler"
> 
> checkpoint to fire.
> 
> I did some debugging and for whatever reason that checkpoint is not tripped.
> 
> So, I changed it to
>   when="before-render"
> 
> and it works fine.  Anyone have an explanation?

I don't know but the example was tested with revision 182, so maybe some
changes have modified it.

> 
> Second - the PHP function - I think Formidable is now returning the form 
> data a little differently.  I had to change the PHP function to the 
> following:
> 
> 
>     function _editForm($aParams, $oForm) {
>         $postArray = t3lib_div::_POST($oForm->formid);
>         //$titles = $postArray['pages:title'];
>         $pages= $postArray['pages'];
>         //t3lib_div::debug($pages);
> 
>         if ($aParams['uid']) {
>             $GLOBALS['TYPO3_DB']->exec_UPDATEquery('pages', 'uid="' . 
> $aParams['uid'] . '"',
>                 array('title' => $pages[$aParams['uid']][title]));
>         }
>         else {
>             foreach ($pages as $id => $value) {
>                 $GLOBALS['TYPO3_DB']->exec_UPDATEquery('pages', 'uid="' 
> . $id . '"', array('title' => $value[title]));
>             }
>         }
> 
>     }
> 

Yes this is another change on last revisions, sorry but I don't have any
time to test it in last Formidable revision so I can't help more.

Best regards,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list