[TYPO3-dev] TCA select element with dynamic data and multiple languages
Andres Toomsalu
andres at active.ee
Sat Nov 18 21:36:41 CET 2006
Hi,
Maybe someone could hint me what could be the right way to have TCA
select element with dynamic data from another table (with localization)
displaying only labels in default language instead displaying labels in
all languages?
So
a) is there a some additional TCA configuration properties for doing this?
b) or it has to be simple WHERE condition (sys_language_uid=0) to select
lookup?
I'm reading Core API and localization docs but not finding the answer
for that or I'm missing something obvious maybeBest...
For reference:
1) I'm having select with lookup:
"location" => Array (
"exclude" => 1,
"label" =>
"LLL:EXT:asys_hoteldb/locallang_db.xml:tx_asyshoteldb_records.location",
"config" => Array (
"type" => "select",
"foreign_table" => "tx_asyshoteldb_location",
"foreign_table_where" => "ORDER BY
tx_asyshoteldb_location.uid",
"size" => 5,
"minitems" => 0,
"maxitems" => 15,
)
),
2) tx_asyshoteldb_location table has localization support and data
records in multiple languages
3) TCA select "location" displays ALL records from
tx_asyshoteldb_location table - but I'm only wanting it to display
records in default language
Best Regards,
--
----------------------------------------------
Andres Toomsalu, andres at active.ee
juhataja - general manager, OÜ Active Systems
Lille 4-205, Pärnu 80041, phone +372 44 70 595
GSM +372 56 496 124, IM: frame at jabber.org
http://www.active.ee
More information about the TYPO3-dev
mailing list