简体   繁体   中英

Typo3 FAL: file search in backend

I'm building an extension for a Typo3 6.1 site, which uses FAL. This extension works with a lot of files, so a search function would be very helpful, but I can't find it anywhere. Do, does FAL have any search function in backend for Typo3 6.1?

Currently, FAL does not have a file search implemented.

But you can use Extension "Media" (Key: media) which offers search and filter functionality. In the configuration of the extension you can define whether you want to use Media or "FAL" (the normal file picker) als Media Element Browser (when linking to files).

If you are thinking of implementing a search on the files, then your repository should extend TYPO3\\CMS\\Core\\Resource\\FileRepository which is basically a mapper to the sys_file table. This return a FileReference object or a list of FileReference objects, when looking up for something in the table.

FileRepository.php: http://typo3.org/api/typo3cms/_file_repository_8php_source.html

FileReference.php:
http://typo3.org/api/typo3cms/core_2_classes_2_resource_2_file_reference_8php_source.html

只是为了更新这个老问题: 从TYPO3版本7LTS开始, 您可以递归搜索后端模块文件列表中的文件/文件夹

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM