Skip to content

Commit

Permalink
[TASK] Move call to registerPageTSConfigFile to TCA/Overrides
Browse files Browse the repository at this point in the history
To improve the performance, the call to registerPageTSConfigFile
should be moved from the ext_tables,php to the TCA/Overrides.

Related: #181
  • Loading branch information
georgringer committed Dec 6, 2016
1 parent 585d534 commit a431f39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
1 => 'news',
2 => 'apps-pagetree-folder-contains-news'
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'news',
'Configuration/TSconfig/Page/news_only.txt',
'EXT:news :: Restrict pages to news records');
6 changes: 0 additions & 6 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByCategory'] = 'uid,title,tstamp,sorting';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByNews'] = 'tstamp,datetime,crdate,title' . ($configuration->getManualSorting() ? ',sorting' : '');
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['orderByTag'] = 'tstamp,crdate,title';

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'news',
'Configuration/TSconfig/Page/news_only.txt',
'EXT:news :: Restrict pages to news records');

};

$boot();
Expand Down

0 comments on commit a431f39

Please sign in to comment.