TYPO3 backend: search custom records

烈酒焚心 提交于 2019-12-10 16:59:50

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/10751197/typo3-backend-search-custom-records

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!