<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE></STYLE>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-LEFT: 10px; FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; BORDER-TOP-STYLE: none; PADDING-TOP: 15px; FONT-STYLE: normal; FONT-FAMILY: Verdana; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; TEXT-DECORATION: none; BORDER-BOTTOM-STYLE: none"
leftMargin=0 topMargin=0 acc_role="text" CanvasTabStop="true"
name="Compose message area"><!--[gte IE 5]><?xml:namespace prefix="v" /><?xml:namespace prefix="o" /><![endif]-->
<DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>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></DIV>
<DIV> </DIV>
<DIV>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:</DIV>
<DIV> "coaches" => Array
( <BR> "exclude" =>
1, <BR> "label" =>
"LLL:EXT:user_webboteammgr/locallang_db.php:tx_webboteammgr_teams.coaches", <BR> "config"
=> Array (<BR> "type" =>
"group", <BR> "internal_type" =>
"db", <BR> "allowed" =>
"tx_webboteammgr_non_players", <BR> "size" =>
4, <BR> "minitems" =>
0,<BR> "maxitems" =>
10, <BR> "MM" =>
"tx_webboteammgr_teams_coaches_mm",<BR> )</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>I've read the docs for the [CTRL] section and can see it says "<EM>M<!--StartFragment -->ay not be used consistently in the system, but should
apply in most cases</EM>" regarding the "label_alt" field.</DIV>
<DIV> </DIV>
<DIV>Any suggestions from anyone?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Steve</DIV></BODY></HTML>