[!!!][FEATURE] ElementBrowser refactoring, LinkBrowser API - Part 1
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
6 'web',
7 'list',
8 '',
9 '',
10 array(
11 'routeTarget' => \TYPO3\CMS\Recordlist\RecordList::class . '::mainAction',
12 'access' => 'user,group',
13 'name' => 'web_list',
14 'labels' => array(
15 'tabs_images' => array(
16 'tab' => 'EXT:recordlist/Resources/Public/Icons/module-list.svg',
17 ),
18 'll_ref' => 'LLL:EXT:lang/locallang_mod_web_list.xlf',
19 ),
20 )
21 );
22
23 // register element browsers
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['db'] = \TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::class;
25 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
26 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['folder'] = \TYPO3\CMS\Recordlist\Browser\FolderBrowser::class;
27
28 // register default link handlers
29 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
30 TCEMAIN.linkHandler {
31 page {
32 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\PageLinkHandler
33 label = LLL:EXT:lang/locallang_browse_links.xlf:page
34 }
35 file {
36 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FileLinkHandler
37 label = LLL:EXT:lang/locallang_browse_links.xlf:file
38 displayAfter = page
39 scanAfter = page
40 }
41 folder {
42 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FolderLinkHandler
43 label = LLL:EXT:lang/locallang_browse_links.xlf:folder
44 displayAfter = file
45 scanAfter = file
46 }
47 url {
48 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\UrlLinkHandler
49 label = LLL:EXT:lang/locallang_browse_links.xlf:extUrl
50 displayAfter = folder
51 scanAfter = mail
52 }
53 mail {
54 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\MailLinkHandler
55 label = LLL:EXT:lang/locallang_browse_links.xlf:email
56 displayAfter = url
57 }
58 }
59 ');
60 }