[Typo3-dev] $TCA foreign_table_where using CONSTANTS FOR TEMPLATE
Ronald Renfro
rrenfro at ilovehtml.net
Thu Nov 3 20:20:14 CET 2005
Hi Lars,
I found a solution by looking at the tt_news ext.
In the tt_news TCA file you can see this at the beginning of the file
$storagePid = ($fTableWhere ? '###STORAGE_PID###':'###CURRENT_PID###');
and for the table field definitions latter in the file something like
this
"pid" => $storagePid,
instead of
"pid" => "###CURRENT_PID###",
as far I know you just have to put the correct pid you want into the
variable $storagePid and your good to go!
hope this helps.
Ronald Renfro
On 03.11.2005, at 19:44, Lars R. wrote:
> Hi,
>
> I created an extension with kickstarter, which typically consists
> of the
> file tca.php.
>
> This file describes the $TCA and also uses a
> "foreign_table_where"-clause with e.g. ###CURRENT_PID### for
> refering to
> an other table.
>
>
>
> In root of my site I added some configurations using
> ext_typoscript_constants.txt. (my extension is available by selectbox
> and shows a list with defined parameters e.g. a PID)
>
> This defined CONSTANTS should be able in tca.php to substitute the
> ###CURRENT_PID### (or own marker) with the right PID read from
> ext_typoscript_constants.txt.
>
>
> Is there anybody who knows a solution?
>
> thx,
>
> Lars
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
----------
whoami | ronald renfro
rrenfro at whoami-design.net
telefon 069 133933169
mobil 0176 23845949
http://www.whoami-design.net
More information about the TYPO3-dev
mailing list