[TYPO3-project-formidable] how-to access and manipulate LISTER column data?
Luc Muller
l.mul-nospam-ler at ameos.com
Mon Jan 12 16:13:13 CET 2009
You can use this :
$aData = $this->oDataHandler->_getListData();
$myRowStatus = $aData["status"];
Hope this helps.
Luc =:0)
Andres Toomsalu a écrit :
> Little fix to use case example code:
>
> <column name="status" type="renderlet:TEXT" listHeader="LLL:status" >
> <data>
> <value>
> <userobj>
> <php><![CDATA[/*<?*/
> #how to access current
> column value coming from lister datasource?
> $colValue = ????;
> if ($colValue) $result
> = OK;
> return $result;
>
> /*?>*/]]></php>
> </userobj>
> </value>
> </data>
> </column>
>
>
>
> ----------------------------------------------
> Andres Toomsalu, andres at active.ee
>
>
>
>
> Andres Toomsalu wrote:
>> Hi,
>>
>> I'm looking a way to access and manipulate (conditionally for
>> example) LISTER renderlet column data - but I have no idea how to
>> access column current value from PHP and how for example choose and
>> output images depending column value instead value itself.
>>
>> Use case 1: Wanting to display OK or Not OK text in lister column
>> named status - database value is boolean 1 or 0.
>> <column name="status" type="renderlet:TEXT" listHeader="LLL:status" >
>> <data>
>> <value>
>> <userobj>
>> <php><![CDATA[/*<?*/
>> #how to access
>> current column value coming from lister datasource?
>> $colValue = ????;
>> if ($colValue)
>> $result = 1;
>> return $result;
>>
>> /*?>*/]]></php>
>> </userobj>
>> </value>
>> </data>
>> </column>
>>
>> Use case 2: As previous but with little addon - displaying OK or Not
>> OK icon instead of the string in previous use case - how?
>>
>> Best regards,
>>
>>
--
*Luc Muller*
/Web Developper/
/Formidable - Rapid Application Developpement Framework for Typo3
<http://formidable.typo3.ug>/
/Typo3 Ameos <http://www.ameos.com>/
More information about the TYPO3-project-formidable
mailing list