b13 / menus

TYPO3 Extension for creating fast menus in a fast fashion
GNU General Public License v2.0
54 stars 22 forks source link

BreadcrumbsMenu: excludeDoktypes ignored #11

Closed bippesbrandao closed 4 years ago

bippesbrandao commented 4 years ago

Hi all,

for the Breadcrumbs Menu the excludeDoktypes config is ignored. Could be something like this in BreadcrumbsMenu:porcess:

` if (!empty($processorConfiguration['excludeDoktypes'])) { $excludedDoktypes = GeneralUtility::intExplode(',', $processorConfiguration['excludeDoktypes']); foreach ($GLOBALS['TSFE']->rootLine as $page) { if (array_search($page['doktype'], $excludedDoktypes) === false ) { $rootline[] = $page; } } } else { $rootline = $GLOBALS['TSFE']->rootLine; }

    $pages = $this->menuRepository->getBreadcrumbsMenu($rootline);

` best regards Arne

achimfritz commented 4 years ago

https://github.com/b13/menus/pull/16/commits/99a440dded8c423eb88653ebec4894f4c91deec9 will fix this