[TYPO3-project-formidable] how-to access and manipulate LISTER column data?

Andres Toomsalu andres at active.ee
Mon Jan 12 16:09:32 CET 2009


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,
>
>   


More information about the TYPO3-project-formidable mailing list