Set up a multilevel menu
Create a menu module with a modified start level to remove the 1st level menu item
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.
Nothing. the menu actually dissapears
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 |
This has been an issue since Joomla 2.5 and has been previously reported on the old tracker
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
Labels |
Added:
?
|
@brianteeman sorry for the delay I had to take a chimney down.
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.
I dont understand what this function is for (possibly menu visibility?). I
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
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
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: ? |
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