[TYPO3-project-formidable] datahandler:LISTER activelistable

Manuel Rego Casasnovas mrego at igalia.com
Wed Dec 5 10:51:41 CET 2007


Hi!

Manuel Rego Casasnovas escribió:
> Hello Jerome,
>
> Jerome Schneider escribió:
>   
>> PS: you should take the step to renderlet:LISTER ;)
>>   
>>     
> I'm trying renderlet:LISTER.
>
> How I can hide a column only for one record?
>
> I'm trying "process" but this isn't evaluated for each row.
> Moreover I try "beforedisplay" however this doesn't work like
> datahandler:LISTER.
>
> Is there any possibility to hide a coloumn according to a field of the row?
>
> For example:
> uid | title | disabled | view | edit | delete
> 1   | one   | 0        | view | edit | delete
> 2   | two   | 1        | view |      |      
>
> I'd like to hide columns edit and delete when field "disabled" is 1.
>   

I find a solution, using the property "disabled" ;-) in the column:
                    <disabled>
                        <userobj>
                            <php>
                                <![CDATA[
                                    $row =
$this->oDataHandler->_getListData();
                                    if ($row['disabled'] != 1) {
                                        return true;
                                    } else {
                                        return false;
                                    }
                                ]]>
                            </php>
                        </userobj>
                    </disabled>

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