Project

General

Profile

Actions

Bug #78345

closed

HMENU/TMENU generates links even "Show in Section Menus" is disabled

Added by Henning Moellendorf about 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2016-10-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

section_disabled.jpg (3.48 KB) section_disabled.jpg Disabled state Henning Moellendorf, 2016-10-19 15:07
sectionmenu.jpg (2.03 KB) sectionmenu.jpg Generated menu Henning Moellendorf, 2016-10-19 15:07
Actions #1

Updated by Josef Glatz about 8 years ago

  • Status changed from New to Needs Feedback

Could you please provide the TypoScript code for easier reproduction?

Actions #2

Updated by Henning Moellendorf about 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
 }
Actions #3

Updated by Riccardo De Contardi almost 8 years ago

  • Category set to TypoScript
  • Status changed from Needs Feedback to New
Actions #4

Updated by Riccardo De Contardi about 7 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.

Actions #5

Updated by Alexander Opitz almost 7 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.

Actions

Also available in: Atom PDF