[TYPO3-dev] new TCA field but only if a specific plugin is choosen
Andreas Wolf
typo3ml at andreaswolf.info
Thu Apr 14 17:08:11 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Krystian,
Am 27.03.2011 13:56, schrieb Krystian Szymukowicz:
> W dniu 2011-03-27 13:43, Steffen Ritter wrote:
>> how about displayCond => 'FIELD:list_type:=:myplugin',
>>
>
> Yes :) This is working. Thanks.
>
> I had feeling than it must be implemented in the core already and it is.
another option should be the subtype_addlist feature. You can use it
like that (untested):
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][<your value>] =
'<yourfieldname>';
This will also display the field only when a specific subtype is chosen.
The plugin select box is a subtype field.
Cheers
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEAREIAAYFAk2nDdsACgkQHWtXp155bP/RLQCeNWEqGhwSxU48WypDkI2c4xoT
9TcAmgKyOy8kmIzH5JrTQbWR8fvS+HVg
=o52n
-----END PGP SIGNATURE-----
More information about the TYPO3-dev
mailing list