Skip to content

Commit

Permalink
[BUGFIX] Use addRootLineFields on v12.4
Browse files Browse the repository at this point in the history
Commit "[BUGFIX] Avoid addRootLineFields on v13" prevented
loading rootline fields on TYPO3 v12.4.26,
leading to a missing "nav_hide" field needed by the breadcrumb viewhelper.

We correctly check that it's a TYPO3 version less than 13,
instead of less-or-equal than 12.4.
  • Loading branch information
cweiske authored and NamelessCoder committed Feb 5, 2025
1 parent 63cf450 commit 41b11dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['v'] = ['FluidTYPO3\\Vhs\\ViewHelpers'];

if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '12.4', '<=')) {
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '13.0', '<')) {
// add navigtion hide to fix menu viewHelpers (e.g. breadcrumb)
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= (empty($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']) ? '' : ',') . 'nav_hide,shortcut,shortcut_mode';

Expand Down

0 comments on commit 41b11dc

Please sign in to comment.