[BUGFIX] Register FileBrowser for file_reference mode
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Register element browsers
5 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['db'] = \TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::class;
6 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file_reference'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
8 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['folder'] = \TYPO3\CMS\Recordlist\Browser\FolderBrowser::class;
9
10 // Register default link handlers
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
12 TCEMAIN.linkHandler {
13 page {
14 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\PageLinkHandler
15 label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:page
16 }
17 file {
18 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FileLinkHandler
19 label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:file
20 displayAfter = page
21 scanAfter = page
22 }
23 folder {
24 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FolderLinkHandler
25 label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:folder
26 displayAfter = file
27 scanAfter = file
28 }
29 url {
30 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\UrlLinkHandler
31 label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:extUrl
32 displayAfter = folder
33 scanAfter = mail
34 }
35 mail {
36 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\MailLinkHandler
37 label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:email
38 displayAfter = url
39 }
40 }
41 ');