简体   繁体   English

Typo3 FAL:后端文件搜索

[英]Typo3 FAL: file search in backend

I'm building an extension for a Typo3 6.1 site, which uses FAL. 我正在构建一个使用FAL的Typo3 6.1站点的扩展。 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? 那么,FAL在Typo3 6.1的后端是否有任何搜索功能?

Currently, FAL does not have a file search implemented. 目前,FAL没有实施文件搜索。

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). 在扩展的配置中,您可以定义是否要使用Media或“FAL”(普通文件选择器)als Media Element Browser(链接到文件时)。

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. 如果您正在考虑对文件执行搜索,那么您的存储库应该扩展TYPO3\\CMS\\Core\\Resource\\FileRepository ,它基本上是sys_file表的映射器。 This return a FileReference object or a list of FileReference objects, when looking up for something in the table. 在查找表中的内容时,这将返回FileReference对象或FileReference对象列表。

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

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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