[TYPO3-project-formidable] datahandler:LISTER activelistable
Jerome Schneider
typo3dev at ameos.com
Mon Dec 3 17:23:32 CET 2007
Hello Manuel,
The reason is that the activelistable feature has not been completely
finished, due to lack of time. For the moment there's no integrated way
to obtain data from renderlets repeated in a list. There's an ersatz of
developement ( something like params="uid, rowInput::value" ) but it's
incomplete and only for ajax events.
Concerning the problem of getListData in process of a row:
Process is evaluated well before the list is displayed, to strip the
renderlet from the memory really early if process=false; thus it's not
executed once per row, but once for the page, at the init() time.
This is the purpose of /datahandler/process/beforedisplay
Use it like this:
<datahandler:LISTER>
<tablename>pages</tablename>
<keyname>uid</keyname>
<labelname>title</labelname>
<process>
<beforedisplay>
<userobj>
<php><![CDATA[
$aRowHtml = func_get_arg(1);
$aListData = $this->oDataHandler->_getListData();
if($aListData["title"] == "I don't want this") {
$aRowHtml["value"] = "";
}
return $aRowHtml;
]]></php>
</userobj>
</beforedisplay>
</process>
</datahandler:LISTER>
PS: you should take the step to renderlet:LISTER ;)
Manuel Rego Casasnovas a écrit :
> Hello.
>
> More problems with datahandler:LISTER. I use the method "_getListData"
> but I can't get any value for the row.
>
> XML config:
> <renderlet:TEXT name="value">
> <activelistable>true</activelistable>
> <process>
> <userobj>
> <php>
> <![CDATA[
> echo '<pre>_getListData:
> ';var_dump($this->oDataHandler->_getListData());echo '</pre>';
> ]]>
> </php>
> </userobj>
> </process>
> </renderlet:TEXT>
>
> How I can get the values for the current row?
>
> Best regards,
> Rego
>
More information about the TYPO3-project-formidable
mailing list