[TYPO3-dev] TCA Question
Mario Rimann
typo3-coding at rimann.li
Mon Jun 26 14:58:59 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks
I have a field in the pages table in which a user can select a
contact-person for this page. This works fine so far.
But in the list of available persons (that comes from a database table),
only the last_name is shown. This could be improved, if also the first
name would be shown in the label.
I didn't find the trick how to do this. Any hint?
- --- snippet from the TCA definition of this field ---
"tx_bzdstaffdirectory_bzd_contact_person" => Array (
"exclude" => 0,
"label" =>
"LLL:EXT:bzd_staff_directory/locallang_db.php:pages.tx_bzdstaffdirectory_bzd_contact_person",
"config" => Array (
"type" => "select",
"foreign_table" => "tx_bzdstaffdirectory_persons",
"foreign_table_where" => "AND tx_bzdstaffdirectory_persons.l18n_parent
= 0 ORDER BY tx_bzdstaffdirectory_persons.last_name",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
)
),
- -----------------------------------------------------
Greetings,
Mario
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEn9oS5yAXgAWej3wRAmQOAJwOrGi0XPsOnY1lX3WwL3wJil+SZgCgpXSg
xCfnC88DzhoFqAp4Nftac3A=
=+bDo
-----END PGP SIGNATURE-----
More information about the TYPO3-dev
mailing list