[Typo3-dev] Displaying label_alt in TCE Group
Steve Webster
steviewebsite at msn.com
Thu Dec 30 15:29:26 CET 2004
Hi everyone,
Developing my first extension and wondered if this is possible. I have 2 tables, one containing people records (containing 2 columns, 1 for Surname, the other Forename) the other containing details regarding teams. The extension is intended to be used as a sports team management system.
When displaying people records in the "List" view it would only list the "Surname" (as "label" = surname) which obviously caused problems distinguishing different people with the same surname. So I modified by TCA and set the label_alt="forename" and label_alt_force=true. This fixed the "List" view in that records are now displayed in the format <Surname>, <Forename>
I have another table, called Teams, where I want to select a number of people (who are team coaches) from my first table via a "GROUP" columm. I have my TCA column defined as:
"coaches" => Array (
"exclude" => 1,
"label" => "LLL:EXT:user_webboteammgr/locallang_db.php:tx_webboteammgr_teams.coaches",
"config" => Array (
"type" => "group",
"internal_type" => "db",
"allowed" => "tx_webboteammgr_non_players",
"size" => 4,
"minitems" => 0,
"maxitems" => 10,
"MM" => "tx_webboteammgr_teams_coaches_mm",
)
Everything works great, I hit the browse button of the group column and can select the correct player as the records show the format as I defined earlier (<Surname>, <Forename>). However, once I select a player to be added to my form, it only displays the players Surname in the form not the <Surname>, <Forename> format that I defined.
I've read the docs for the [CTRL] section and can see it says "May not be used consistently in the system, but should apply in most cases" regarding the "label_alt" field.
Any suggestions from anyone?
Thanks
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20041230/249a5d44/attachment.htm>
More information about the TYPO3-dev
mailing list