[Typo3-dev] Ext with multiple plugins,	Q2: passing values to	each plugin
    Rainer Kuhn 
    kuhn at punkt.de
       
    Tue Jul  6 17:14:27 CEST 2004
    
    
  
Wolfgang Klinger wrote:
>  And you don't get any of those two drop down lists with other content
>  elements?
>  debug($TCA["tt_content"]["types"]["list"]["subtypes_addlist"]); in
>  ext_tables.php, maybe that gives you a clue...
Hi Wolfgang,
debug($TCA["tt_content"]["types"]["list"]["subtypes_addlist"]); in
ext_tables.php outputs the following, what seems to be correct for me:
+-----------------------+---------------------------------------+
|  pt_conf_visitors_pi1	| tx_ptconfvisitors_type;;;;1-1-1       |
+-----------------------+---------------------------------------+
|  pt_conf_visitors_pi3	| tx_ptconfvisitors_stats_type;;;;1-1-1 |
+-----------------------+---------------------------------------+
Nevertheless I get the follwing behaviour with different content elements in 
the backend:
* content element plugin pi1: selectorbox for pi1 (tx_ptconfvisitors_type)
   --> this is how it should be
* content element plugin pi3: selectorbox for pi1 (tx_ptconfvisitors_type) 
_and_ selectorbox for pi3 (tx_ptconfvisitors_stats_type)
   --> the selectorbox for pi1 is wrong here
* all other content elements (incl. plugin pi2): none of the two selectorboxes
   --> this is o.k.
.
.
.
Wheeee! - I've found it by writing a second debug statement at the end of 
ext_tables.php: Kickstarter added 400 lines below, near the end of the file, 
the following line I didn't find before:
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi3"]="tx_ptconfvisitors_type;;;;1-1-1, 
tx_ptconfvisitors_stats_type";
Now I changed this to
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi3"]="tx_ptconfvisitors_stats_type;;;;1-1-1";
and everythings is fine... :)
Thanks for your hint!
Rainer
    
    
More information about the TYPO3-dev
mailing list