Skip to content

Commit

Permalink
[FEATURE] Provide filter TsConfig for allowedNewTables
Browse files Browse the repository at this point in the history
Provide an entry for the static page TsConfig select field to
reduce the items for the new record wizard to show only tt_address
records.
  • Loading branch information
georgringer committed Sep 21, 2020
1 parent 2fdb254 commit fcdb474
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-tt-address'] = 'apps-pagetree-folder-contains-tt-address';
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-tt_address'] = 'apps-pagetree-folder-contains-tt-address';
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-ttaddress'] = 'apps-pagetree-folder-contains-tt-address';

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'tt_address',
'Configuration/TSconfig/AllowedNewTables.typoscript',
'EXT:tt_address :: Restrict pages to tt_address records');
1 change: 1 addition & 0 deletions Configuration/TSconfig/AllowedNewTables.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod.web_list.allowedNewTables := addToList(tt_address)

0 comments on commit fcdb474

Please sign in to comment.