[Typo3-dev] Enabling formfields for a folder
Kasper Skårhøj
kasper2005 at typo3.com
Thu Dec 15 15:16:28 CET 2005
Hi Elmar,
First of all I assume you mean forms in the backend...
>
> if( $TSFE[id] == $conf[pid])
> addPTS( 'TCEFORM.tt_address.tx_myfield.disabled = 0');
> else
> addPTS( 'TCEFORM.tt_address.tx_myfield.disabled = 1');
... in which case you cannot at all use TSFE since it doesn't exist in the
backend environment.
Rather, you put "TCEFORM.tt_address.tx_myfield.disabled = 1" on the page from
where you want the field to be enabled (which at the root ofthe page tree you
put "TCEFORM.tt_address.tx_myfield.disabled = 0" of course).
I somehow feel you already knew this and that it is not the answer you look
for...
> A second idea using $TCA['columns'][fieldname] section.
>
> 'displayCond' => 'FIELD:pid:= : ' .$conf[pid]
Another fancy way - although hardcoded :-)
>
>
> What is the standard way?
I would say 1) - that was created for the purpose.
- kasper
>
>
> Regards
>
> Elmar
--
- kasper
-----------------
"A 'please' would be nice", John Travolta, Pulp Fiction
More information about the TYPO3-dev
mailing list