[TYPO3] ext_tables.php and foreign_table - please explain
Søren Malling
soren.malling at gmail.com
Mon Jul 28 13:18:45 CEST 2008
Hi Alex,
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?
Regards,
Søren
On Mon, Jul 28, 2008 at 12:02 PM, Alexander Stehlik <
alexander.stehlik at googlemail.com> wrote:
> Hi Søren,
>
> I think the easiest way to figure out how to use foreign tables is to
> create an extension in the kickstarter (in the Extension Manager).
>
> There you can create a new table and a field with the type Database
> relation. This should be quite self-explaining.
>
> Now you can view the result and inspect the source code.
>
> Good luck.
>
> Greetz,
>
> Alex.
>
> 2008/7/28 Søren Malling <soren.malling at gmail.com>:
> > I'd like to bring this question up again, does nobody know how to use
> > foreign_table or are they just on vacations? :-)
> >
> > Regards,
> >
> > Søren
> >
> > On Thu, Jul 24, 2008 at 10:29 AM, Søren Malling <soren.malling at gmail.com
> >wrote:
> >
> >> Hi,
> >>
> >> I've been having a look at the use of foreign_table in my ext_tables.php
> >> files, but without any real luck. I'm not able to get any output from my
> >> table, and i feel like I'm missing somewhere to define what field to
> take
> >> values from, in my table.
> >>
> >> Can some one please explain me the lack of configuration, or maybe a
> link
> >> to
> >> a page desribing/documentating the foreign_table possibility? I've
> already
> >> been through this page
> >>
> >>
> >>
> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/2/#id4104498
> >>
> >> Without any real luck or better understanding for why it isn't working
> >>
> >> "user_extendfeuser_testfield" => Array (
> >> "exclude" => 0,
> >> "label" => "test field", #hardcoded label, just for
> testing
> >> purpose
> >> "config" => Array (
> >> "type" => "select",
> >> "foreign_table" => "tx_fdforginfo_fields", #name
> of
> >> my extension table
> >> "size" => "5",
> >> "minitems" => 0,
> >> "maxitems" => 1,
> >> )
> >> ),
> >>
> >>
> >> Thanks and regards,
> >>
> >> Søren
> >> _______________________________________________
> >> TYPO3-english mailing list
> >> TYPO3-english at lists.netfielders.de
> >> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >>
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> 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