[Typo3-dev] Enabling formfields for a folder

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Thu Dec 15 15:02:44 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have extended tt_addres by an own field and I want to use it only in a
special folder, but not in other places where tt_address in used.

I wonder if there is a simple way to do this.

My idea would be the following by Adding pageTS with the extension.
Very quick and dirty:

if( $TSFE[id] == $conf[pid])
   addPTS( 'TCEFORM.tt_address.tx_myfield.disabled = 0');
else
   addPTS( 'TCEFORM.tt_address.tx_myfield.disabled = 1');


A second idea using $TCA['columns'][fieldname] section.

'displayCond' => 'FIELD:pid:= : ' .$conf[pid]


What is the standard way?


Regards

Elmar

- --
Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
Spain, Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDoXeEO976RNoy/18RAmALAJ4txrIfz7n6VKQt7jPYF1IN5KKlmACgwice
dsNDVpnTggMR5nh2QOYGo6E=
=0Spr
-----END PGP SIGNATURE-----




More information about the TYPO3-dev mailing list