cili
cili

Reputation: 1067

TYPO3 backend: search custom records

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.

Upvotes: 4

Views: 3492

Answers (1)

biesior
biesior

Reputation: 55798

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

Upvotes: 10

Related Questions