[TYPO3] ext_tables.php and foreign_table - please explain

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Jul 28 13:29:43 CEST 2008


Hi!

Søren Malling wrote:
> As shown in my mail, I've already created a extension and tried using the
> foreign_table, but i need to know how to "choose" the fields to be shown,
> from my table.
> 
> If i write "fe_users" as my foreign_table, it automaticly write the
> usernames ini my selector, but how do I define the fields I would like to
> see?

TYPO3 always shows "label" field there. For fe_users it is "username" field. You can define your own function to return alternative label but it will be used everywhere in the Backend. See about labels in "TYPO3 core API".

-- 
Dmitry Dulepov
TYPO3 Core team
Latest article: http://typo3bloke.net/post-details/do_not_ask_more_than_you_need/
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml


More information about the TYPO3-english mailing list