[TYPO3-project-formidable] access $aParams from url without customtag
Asbjørn Morell
atmorell at gmail.com
Wed May 30 22:26:32 CEST 2007
Hello,
Is it also possible to access row data from a <process>? I need to check
something before showing the link.
Best regards.
Asbjørn Morell.
<renderlet:LINK name="mylink" label="edit">
<url>
<userobj>
<php><![CDATA[
$aRowData = $this->oDataHandler->_getListData();
return t3lib_div::locationHeaderUrl(
$this->_oParent->pi_getPageLink(
$GLOBALS["TSFE"]->id,
"",
array("action" => artEdit,
"uid" => $aRowData['uid']
)
)
);
]]></php>
</userobj>
</url>
<process>
<userobj>
<php><![CDATA[
$aRowData = $this->oDataHandler->_getListData();
dump($aRowData);
//array returns empty
]]></php>
</userobj>
</process>
</renderlet:LINK>
"Jerome Schneider" <j.schneider at ameos.com> wrote in message
news:mailman.1.1180507498.9401.typo3-project-formidable at lists.netfielders.de...
> Hello,
> You should try this one: $this->oDataHandler->_getListData();
>
> Which returns the current row for each displayed line
>
> like this:
>
>
> <renderlet:LINK name="mylink">
> <url>
> <userobj>
> <php><![CDATA[
>
> $aRowData = $this->oDataHandler->_getListData();
> return "http://www.google.com/search?q=" . $aRowData["title"];
>
> ]]></php>
> </userobj>
> </url>
> </renderlet:LINK>
>
>
> Regards,
> Jerome Schneider
>
> Asbjørn Morell a écrit :
>> Hello,
>>
>> Is there a alternativ way of getting row data (uid, etc) from a url
>> renderlet? (datahandler:LISTER) Maybe call _oParent directly or something
>> :/
>>
>> Best regards.
>> Asbjørn Morell.
>>
>> <renderlet:LINK name="mylink">
>> <url>
>> <userobj>
>> <php><![CDATA[
>>
>> ]]></php>
>> </userobj>
>> </url>
>> </renderlet:LINK>
More information about the TYPO3-project-formidable
mailing list