Bug #16026
closedspecial=directory does not include submenu entries
0%
Description
With a "special=directory" HMENU and a TMENU for menu.1 and menu.2, only the TMENU for menu.1 gets displayed, though documentation (TSref) says:
"NOTE: Don't set .entryLevel for a HMENU when using this option! Also be aware that this selects pages for the first level in the menu. Submenus by menuPbjects 2+ will be created as usual."
I've experienced the problem with Typo3 3.81, but just tested it with 4.0.
I've used the following template setup for the test with 4.0, which is simplified from the original template:
page = PAGE
page {
10 = HMENU
10 {
special = directory
special.value = 1
1 = TMENU
1{
NO {
allWrap = <li>|</li>
}
wrap = <ul>|</ul>
}
2 = TMENU
2{
NO {
allWrap = <li> Second level:|</li>
}
wrap = <ul>|</ul>
}
wrap = <div class="menu1">|</div>
}
}
Attached is a screenshot of the pages in the backend.
"1.1" is ID 1, but if "1.1.1" is selected in the displayed menu, the subpages (1.1.1.1 and 1.1.1.2) get not shown.
We've tried to work around this, by setting "entryLevel = 2" (which is forbidden in the TSref), but though it initially worked, it produced totally empty content for this part of the page later.
"DEBUG information" (of the local 4.0 machine)- DEBUG SYSTEM INFORMATION - START ###
HTTP_HOST : t3.local
TYPO3_HOST_ONLY : t3.local
TYPO3_PORT :
PATH_INFO :
QUERY_STRING : TYPO3_INSTALL[type]=phpinfo
REQUEST_URI : /typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
HTTP_REFERER : http://t3.local/typo3/install/index.php?
TYPO3_REQUEST_HOST : http://t3.local
TYPO3_REQUEST_URL : http://t3.local/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT: http://t3.local/typo3/install/index.php
TYPO3_REQUEST_DIR : http://t3.local/typo3/install/
TYPO3_SITE_URL : http://t3.local/
TYPO3_SITE_SCRIPT : typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_SSL :
SCRIPT_NAME : /typo3/install/index.php
TYPO3_DOCUMENT_ROOT : C:/usr/www/typo3
SCRIPT_FILENAME : C:/usr/www/typo3/typo3/install/index.php
REMOTE_ADDR : 127.0.0.1
REMOTE_HOST :
HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
HTTP_ACCEPT_LANGUAGE: en,en-us;q=0.8,de-de;q=0.5,de;q=0.3
CONST: PHP_OS : WINNT
CONST: TYPO3_OS : WIN
CONST: PATH_thisScri: C:/usr/www/typo3/typo3/install/index.php
CONST: php_sapi_name: apache2handler
OTHER: TYPO3_VERSION: 4.0
OTHER: PHP_VERSION : 5.1.2
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif() : 1
imagepng() : 1
imagejpeg() : 1
imagettftext() : 1
OTHER: IMAGE_TYPES : 15
OTHER: memory_limit :
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache/2.0.55 (Win32) PHP/5.1.2
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /typo3/install/index.php
SERVER: PATH_TRANSLA:
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib : 1
T3CV_GFX: gdlib_png : 0
T3CV_GFX: gdlib_2 : 0
T3CV_GFX: im : 1
T3CV_GFX: im_path : /usr/X11R6/bin/
T3CV_GFX: im_path_lz: /usr/bin/
T3CV_GFX: im_version:
T3CV_GFX: im_negate_: 0
T3CV_GFX: im_imvMask: 0
T3CV_GFX: im_combine: combine - DEBUG SYSTEM INFORMATION - END ###
(issue imported from #M3224)
Files