T4 Megamenu - limit submenu items display.
Sorry for the delay, the site is now online at the address shown in the fields of the first post.
I will setup an FTP later today if you need it ?
You can now see that under the "GTS Projects" menu, there is a menu item "Present Projects at the GTS".
This "Present Projects at the GTS" menu link needs to be clicked twice to work, and also still has the drop down arrow even though I switched off the display of any submenus.
I would expect the menu to function normally (using a standard click) and to not show the drop down arrow (JA T3 functioned like this).
Thanks,
D.
Thank-you Pankaj,
I am converting a large JA T3 to use the new JA T4 framework and I need this to be solved before I continue.
Hopefully the dev team can quickly solve this issue.
D.
Any news on this menu bug fix ?
I have several large projects that I am stalling to wait for a fix, but I am getting mounting pressure to move forward.
I'd like to use T4 but I may be forced to find an alternative to finish a few jobs.
D.
The updated file solves the problem of the drop down arrow.
But the problem with 2 clicks to activate a link is still present.
I will update my online site for you to see. I will post when that is active.
D.
Thanks saguaros,
Sorry for the delay in replying.
I have updated my on-line site (details as shown in first post of this thread) with adding the menu you supplied above.
To replicate the problem:
Go to the site as shown in first post
Go to the top menu "GTS Projects".
In the sub-menu list the "Present projects at the GTS" sub menu will not function on the FIRST mouse click, but will link correctly on the SECOND mouse click.
It should go the menu link on the FIRST mouse click.
I have updated the site to all the latest plugins versions including Joomla 3.9.22.
Thanks,
Dave
Brilliant, thanks saguaros.
Will this change you made be included in the next T4 update ?
Should I save that adjusted version ?
Thanks for the solution.
Dave
On further testing it looks like the Styles for the selected links has now altered and is incorrect, when using your adjusted code. I tested against your default installation online.
I will explore this further and document what I find.
Dave
I double checked and I think the highlighting of a selected menu item is not working correctly in the MegaMenu.
The images below show that the highlighted item is shown correctly using the online T4 Demo, but it shows ALL submenus as being selected on my site with the updated code.
I will continue to check, but I don't think I altered any CSS for megamenu classes.
Dave
Hi Dave,
It's a style issue of megamenu, it's fixed now, kindly check.
Thanks saguaros,
What did you change ?
So that I can update my offline verison also. Can I use my custom colour pallette on the mega menu now ?
Dave
OK, I can use my own pallette - just checked.
What file did you change so I can update my offline version ?
Thanks,
Dave
Hi Dave,
I edited this file: plugins/system/t4/themes/base/css/tpl/pattern.tpl.css
.__class .nav > li.active > a,
.__class .nav > li.active > a.nav-link
.__class .nav > li.active:hover > a,
.__class .nav > li.active:hover > a.nav-link {
color: __link_hover_color;
}