Bug #78031 ยป DirectoryViewHelper.patch
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/DirectoryViewHelper.php (revision ) | ||
---|---|---|
$typoScriptFrontendController->register['ceMenuLevel_directory']++;
|
||
}
|
||
if ($typoScriptFrontendController->register['ceMenuLevel_directory'] > $typoScriptFrontendController->register['ceMenuMaximumLevel_directory']) {
|
||
return '';
|
||
}
|
||
if ($typoScriptFrontendController->register['ceMenuLevel_directory'] <= $typoScriptFrontendController->register['ceMenuMaximumLevel_directory']) {
|
||
$variables = [
|
||
$as => $pages
|
||
];
|
||
if (!empty($levelAs)) {
|
||
$variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel_directory'];
|
||
}
|
||
$output = $this->renderChildrenWithVariables($variables);
|
||
$variables = [
|
||
$as => $pages
|
||
];
|
||
if (!empty($levelAs)) {
|
||
$variables[$levelAs] = $typoScriptFrontendController->register['ceMenuLevel_directory'];
|
||
}
|
||
$output = $this->renderChildrenWithVariables($variables);
|
||
}
|
||
$typoScriptFrontendController->register['ceMenuLevel_directory']--;
|
||