[TYPO3-dev] Alter foreign_table_where to select items from parent page
Brian Bendtsen
nightowl at galnet.dk
Tue Apr 24 15:05:19 CEST 2007
>> Am I totally lost or?
>
> Pretty much, yes.
> It is important to read and understand the documentation.
> Another thing is that I am not sure if "###CURRENT_PID###" is available
> in your php class.
>
> Mathias
Had the feeling :)
I kinda figured that ###CURRENT_PID### isn't available, but I dont know
how to get it.
Now, I tried changing the my new function to:
class tx_ebbolig_afdeling {
function main() {
$retVal =
array(array('0'=>'value_to_save_in_db','1'=>'label_to_show_in_BE'));
return $retVal;
}
}
But nothing shows up in the select box.
I have this in my TCA:
"type" => "select",
"foreign_table" => "tx_ebbolig_afdeling",
"foreign_table_where" => "ORDER BY tx_ebbolig_afdeling.uid",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
"itemsProcFunc" => "tx_ebbolig_afdeling->main",
...
/BB
More information about the TYPO3-dev
mailing list