No Code Attached Yet
avatar shoulders
shoulders
27 Nov 2019

Steps to reproduce the issue

Set up a multilevel menu
image
Create a menu module with a modified start level to remove the 1st level menu item
image

Expected result

The first level menu should be removed. In my case it was an alias so I can use the secondary menu but maintain the URL structure.
image

Actual result

Nothing. the menu actually dissapears

System information (as much as possible)

PHP Built On Linux xxxxxxxxxxxxxxxxxxx 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
Database Type mysql
Database Version 5.5.5-10.3.18-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.11
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.9.13 Stable [ Amani ] 5-November-2019 15:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Additional comments

This has been an issue since Joomla 2.5 and has been previously reported on the old tracker

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=27190

I discovered some solutions to this isssue on a joomla forum https://forum.joomla.org/viewtopic.php?t=687090

A workaround has been provided by toxicman666 back in 2012 in modules/mod_menu/helper.php line 69 he commented out the line

|| ($start > 1 && !in_array($item->tree[$start - 2], $path)))

Which works for me. there is also another solution made 2 years later which does not work. where abother guy has modified the if statement. I think it is just the last line again that has been altered by cMagnafico

if (($start && $start > $item->level)
    || ($end && $item->level > $end)
    || (!$showAll && $item->level > 1 && !in_array($item->parent_id, $path))
    || ($start>1 && !in_array($path[0],$item->tree)) )

Tar

avatar shoulders shoulders - open - 27 Nov 2019
avatar joomla-cms-bot joomla-cms-bot - change - 27 Nov 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Nov 2019
avatar shoulders shoulders - change - 27 Nov 2019
The description was changed
avatar shoulders shoulders - edited - 27 Nov 2019
avatar shoulders shoulders - change - 27 Nov 2019
The description was changed
avatar shoulders shoulders - edited - 27 Nov 2019
avatar shoulders shoulders - change - 27 Nov 2019
The description was changed
avatar shoulders shoulders - edited - 27 Nov 2019
avatar brianteeman
brianteeman - comment - 28 Nov 2019

I believe the problem is that you have chosen "current" and an alias is not the current. What happens if you select the real menu item as the bas

avatar shoulders
shoulders - comment - 30 Nov 2019

@brianteeman sorry for the delay I had to take a chimney down.

Module menu parent as a real menu

I had checked to see if using an alias as a parent affected this but I did not put that in the ticket above. I have redone the menu but using a single article as the parent in the module menu and this arrangement still does not work. The whole menu dissapears.
image

image

Using the real menu item of the alias as a base

I dont understand what this function is for (possibly menu visibility?). I
image
image

This arrangement does not work either. I have also tried any combination of start level and end level and unless start level is 1 the menu will not display

avatar brianteeman
brianteeman - comment - 27 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

This issue has been resolved in Joomla 4 with #38563 and it will now been closed.

If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24

avatar alikon alikon - change - 28 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-28 05:02:10
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 28 Aug 2022

Add a Comment

Login with GitHub to post a comment