Bug #78345
closedHMENU/TMENU generates links even "Show in Section Menus" is disabled
0%
Description
We are generating a side menu, with sometimes sections showing.
But now, we do have the problem, that all sections are generated in menu even if "show in section menus" is disabled.
Files
Updated by Josef Glatz almost 8 years ago
- Status changed from New to Needs Feedback
Could you please provide the TypoScript code for easier reproduction?
Updated by Henning Moellendorf almost 8 years ago
Here we go:
SIDEMENU = HMENU SIDEMENU { special = directory special.value = 3 1 = TMENU 1 { expAll = 1 entryLevel = 0 noBlur = 1 wrap =<div id="cssmenu"><ul>|</ul></div> NO = 1 NO.ATagParams.typolink.parameter = "" NO { wrapItemAndSub =<li><span class="glyphicon glyphicon-menu-right hidden-md hidden-lg" aria-hidden="true"></span>|</li> } IFSUB = 1 IFSUB { wrapItemAndSub =<li class="has_sub"><span class="glyphicon glyphicon-menu-right hidden-md hidden-lg" aria-hidden="true"></span>|</li> } ACT = 1 ACT { wrapItemAndSub=<li>|</li> } CUR = 1 CUR { ATagParams = class="open_submenu" doNotLinkIt = 0 wrapItemAndSub=<li><span class="glyphicon glyphicon-menu-right hidden-md hidden-lg" aria-hidden="true"></span>|</li> } ACTIFSUB = 1 ACTIFSUB { ATagParams = class="open_submenu" wrapItemAndSub=<li><span class="glyphicon glyphicon-menu-right hidden-md hidden-lg" aria-hidden="true"></span>|</li> } } 2 = TMENU 2 { noBlur = 1 wrap =<ul class="cssmenu_firstsub">|</ul> NO = 1 NO { wrapItemAndSub =<li>|</li> } IFSUB = 1 IFSUB { wrapItemAndSub =<li class="ifsub">|</li> } ACT = 1 ACT { wrapItemAndSub=<li class="act">|</li> } CUR = 1 CUR { ATagParams = class="open_submenu" doNotLinkIt = 0 wrapItemAndSub=<li class="cur">|</li> } } 2.CUR.after.cObject< lib.anchors }
Updated by Riccardo De Contardi over 7 years ago
- Category set to TypoScript
- Status changed from Needs Feedback to New
Updated by Riccardo De Contardi over 6 years ago
- Status changed from New to Needs Feedback
Does this still happens? I just noticed that the code provided does not contain the lib.anchors
parts that I guess contains the sectionIndex menu.
I tried to reproduce it with this very basic sectionIndex menu, that builds a menu with the elements of the page where you are:
page.10=HMENU page.10{ entryLevel=-1 1=TMENU 1{ wrap=<ol>|</ol> sectionIndex=1 sectionIndex.type = header NO{ linkWrap=<li>|</li> ATagParams = tabindex="1" rel="nofollow" stdWrap.htmlSpecialChars = 1 } } if.numRows{ table=tt_content select{ pidInList=this where=colPos=0 } } }
If one of the content elements has "Show in Section Menus" disabled, it is removed from the menu.
Updated by Alexander Opitz over 6 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.