Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TYPO3 backend: search custom records

Tags:

search

typo3

I developed an extension which allows creation of new records.

In List module, under the records list, there is the Search form.

It works with fe users for example, but not with my custom records.

Is there any special configuration that I have to add in my tca to make this form work with my custom records?

EDIT: This seems to be happening after updating to TYPO3 4.6. In the previous version, 4.3.3, it works.

Thanks.

like image 497
cili Avatar asked Dec 27 '22 00:12

cili


1 Answers

Edit ext_tables.php file in typo3conf/ext/yourext directory, find your table, and add to its ctrl section searchFields property as comma separated list of fields to search in:

$TCA['tx_yourext_table'] = array(
    'ctrl' => array(
        'title' => 'Title of your table',
        'label' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
         // etc...
        'searchFields' => 'title, other_field, yet_other_field',
    ),
);

Don't forget to clear all caches after that, works at 4.6.3

There's official information when and why it was changed

like image 57
biesior Avatar answered Jan 01 '23 23:01

biesior