?
avatar ReLater
ReLater
27 Feb 2018

Steps to reproduce the issue

  • Joomla 3.8.5 or current staging.

  • Create menu structure with 3 or 4 levels. In my example/images menu name is "Main Menu-EN"

-  Level 1
- - Level 2
- - - Level3
- - - - Level 4
  • Create a module of type mod_menu. Settings:
    27-02-_2018_12-50-18

  • Create another module of type mod_menu. Settings:
    27-02-_2018_12-55-27

  • Don't forget position and menu association "On all pages"

  • Go to frontend and open menu item "Level 1"

Expected result

Both modules with split menus of level 2 and level 3 are shown.

Actual result

Only level 2 menu is displayed. For level 3 menu ModMenuHelper returns an empty list.
Because of line https://github.com/joomla/joomla-cms/blob/3.8.5/modules/mod_menu/helper.php#L69

Additional comments

Is this really the expected behavior? If yes, I don't understand why.

avatar ReLater ReLater - open - 27 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 27 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Feb 2018
avatar ReLater ReLater - change - 27 Feb 2018
Title
mod_menu. Split menu. Expected bahavior?
mod_menu. Split menu. Expected behavior?
avatar ReLater ReLater - edited - 27 Feb 2018
avatar brianteeman
brianteeman - comment - 27 Feb 2018

Seems to work ok for me

menu

chrome_2018-02-27_12-18-45

chrome_2018-02-27_12-18-56

chrome_2018-02-27_12-19-18

chrome_2018-02-27_12-19-33

avatar ReLater
ReLater - comment - 27 Feb 2018

But if you click menu item "Level 1" there is no module "Level 3". Only "Level 2".

avatar brianteeman
brianteeman - comment - 27 Feb 2018

Thats correct and expected unless you change the base item setting.

For example if your menu structure was something like this then there is no way to know when you are level 1a what level 3 to display.
Level 1a
---Level 1a2a
-----Level 1a2a3a
-----Level 1a2aa3b
---Level a2b
-----Level 1a2b3a
-----Level 1a2aa3b
Level 1b
---Level b2a
-----Level 1b2a3a
-----Level 1b2aa3b
---Level b2b

avatar ReLater
ReLater - comment - 27 Feb 2018

Thank you!

avatar ReLater ReLater - close - 27 Feb 2018
avatar ReLater ReLater - change - 27 Feb 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-02-27 12:59:11
Closed_By ReLater

Add a Comment

Login with GitHub to post a comment