[TYPO3] for and last name in news_author_rel selector box

Peter Quiel amendeus at web.de
Thu Jun 15 15:39:42 CEST 2006


Solved it with:


$TCA['tt_address']['ctrl']['label'] = 'name';
$TCA['tt_address']['ctrl']['label_alt'] = 'tx_addressfieldext_forname';
$TCA['tt_address']['ctrl']['label_alt_force'] = 1;

Am Samstag 10 Juni 2006 09:43 schrieb Peter Quiel:
> Hello,
>
> i'm using tt_news 2.3.6 with address_field_ext and news_author_rel 0.2.0 to
> link an author from tt_address to a news article. I have to short the news
> articles by the last name and i paste
>
> $TCA['tt_address']['ctrl']['label'] = 'name';
>
> into news_authors_rels ext_tables.php file. now the last name ist shown in
> author selection box.
>
> By changing
>
> 'foreign_table_where' => $fTableWhere.'ORDER BY '.$foreign_table.'.uid',
>
> into
>
> 'foreign_table_where' => $fTableWhere.'ORDER BY '.$foreign_table.'.name',
>
> the authors are now sorted by the last name.
>
> My problem is: i have now 130 address entries and a view people with the
> same last name, so i can not distinguish between them.
>
> Somethin like
>
> $TCA['tt_address']['ctrl']['label'] = 'name, tx_addressfieldext_forname';
>
> doesn't work.
>
> Does anyone have an idee?
>
> Thanks in advance
>
> Greetings,
> Peter
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list