-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution for long dropdown submenu #14300
Conversation
PR’s with new functionality should target the 3.x branch |
@JoshuaLuckers This problem is not relevant for 3.x. I think better in 2.x. |
if(!empty($moreMenu)) { | ||
$output .= '<li><a class="right">'.$this->modx->lexicon('more').'</a>'."\n"; | ||
$output .= '<ul class="modx-subsubnav more">'."\n"; | ||
$this->processSubMenus($output, $moreMenu); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The maximum amount of items should also apply here.
It should be relevant for 3.x, too. Scrolling in menus should be made avoidable, if possible. |
@Jako Yes, literally a couple of hours found the same problem in MODX3, although I had not noticed before. Therefore, it is not clear what to do with PR. |
Co-Authored-By: GulomovCreative <gulomov@live.ru>
Co-Authored-By: GulomovCreative <gulomov@live.ru>
Co-Authored-By: GulomovCreative <gulomov@live.ru>
So, I see 2 scenarios for this (really cool!) improvement. We either approve it for 2.x, in its current form, and then when 2.x gets merged into 3.x that'll likely cause weird conflicts that need to be manually resolved. Or, this PR is updated to target 3.x instead. That probably means a bit more work to get things looking just as nice, but it'll avoid that responsibility falling on the integrators doing a merge (which is typically complicated enough, and those integrators may not always know all the intricacies of individual PRs when doing that). So (for completely selfish reasons :D), my vote would go to making it ready for 3.x instead. That then also adds another great reason to hurry with finishing that up for a proper release, and we could add a sensible default (maybe 10?) to the setting that controls it so it kicks in automatically :) |
@Mark-H I got it. I will make it ready for 3.x. Thx! |
@GulomovCreative is this still on your radar? If you need any help please let us know. |
Closing as the consensus is to recreate this for 3. |
Guys, maybe it's worth merge this fix into the 2.x after all? On some projects it is not possible to work with the menu in principle. |
What does it do?
topmenu_submenu_max_items
Process gif
Why is it needed?
Description from #11939
Related issue
Closes #11939