[TYPO3-dev] selectbox in plugin
Tudor
tudor.pali at fecher.eu
Wed Feb 24 14:48:09 CET 2010
On 2/24/2010 3:44 PM, Thomas Löffler wrote:
> "Tudor"<tudor.pali at fecher.eu> schrieb im Newsbeitrag
> news:mailman.1.1267019058.472.typo3-dev at lists.typo3.org...
>
>> On 2/24/2010 3:35 PM, Thomas Löffler wrote:
>>
>>> If you mean the labels of the records in the selectorbox, these are
>>> configured in the TCA ctrl section "label" from this table.
>>>
>>> "Tudor"<tudor.pali at fecher.eu> schrieb im Newsbeitrag
>>> news:mailman.1.1267018036.31194.typo3-dev at lists.typo3.org...
>>>
>>>
>>>> On 2/24/2010 2:49 PM, Steffen Kamper wrote:
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> Tudor schrieb:
>>>>>
>>>>>
>>>>>> Hello
>>>>>> I create a field that has a relation to another table and his type is
>>>>>> 'selectorbox'.
>>>>>> How can i set the selectorbox to have what fields i want from that
>>>>>> table
>>>>>> instead of the uid from that table.
>>>>>> thx
>>>>>>
>>>>>>
>>>>> with TCA configuration
>>>>> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/#id4272080
>>>>>
>>>>> vg Steffen
>>>>>
>>>>>
>>>> i don't get it. how can i write in config that i whant a certain field
>>>> listed from my table?
>>>>
>>>>
>>>
>>>
>> I only want to config what field i want to be listed in combobox.
>> Now i have listed the uid of the records from my table. I want the value
>> from the combobox to be from the Name field not the uid field.
>>
>
> Which table do you mean exactly?
> Where do you get your data for the selectorbox?
>
>
>
'exclude' => 0,
'label' =>
'LLL:EXT:petfoodsearch/locallang_db.xml:tx_petfoodsearch_category_items.categoryid',
'config' => array (
'type' => 'select',
'foreign_table' => 'tx_petfoodsearch_categories',
'foreign_table_where' => 'ORDER BY
tx_petfoodsearch_categories.categoryname',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
in the selectorbox i have now the tx_petfoodsearch_categories.uid field
listed
i want to have there the tx_petfoodsearch_categories.categoryname field.
More information about the TYPO3-dev
mailing list