-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0][Admin template] Menu Dashboard: Display language badge for menus containing home #25944
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
Conversation
|
Is it just me that finds this confusing. |
This is done by multilingual sample data on purpose. |
|
I think/hope you misunderstand me as I wasnt clear - trying again Looking at the screenshots I read it that the new badge FR-fr should show on any french menu. Its not clear that its only for the menu that contains the default menu item for the french language just a suggestion but perhaps display the Star and the badge perhaps on the default menu for that language or even better display the badge on all menus that are language specific and the badge + star on the default |
|
You still don't understand. |
|
I absolutely understand - pretend that sample data is not being used or the menus do not have the text in parenthesis. I am only talking about the badges |
|
A menu may have any name and contain any type of menu items. Please let's not reinvent the wheel. This is a loss of time. |
|
Basically, from my understanding, the badges are now displayed instead of displaying the flag as we do in 3.x |
HLeithner
left a comment
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.
What happens if we have different language homes in one menu?
In J.3 you can't have more than one home in a menu. |
|
Yes but we had a discussion to change this. There is no technical reason why we should have only one language home menu item in a menu. That's the reason I ask. |
Exactly, same we are now getting for the Sidemenu:
Indeed there was a discussion and nothing concrete was proposed... as it would be extremely confusing imho (one would never know in which menu is a specific Home). This patch has the merit of being consistent with what we have now. |
f43ac17 to
40e1937
Compare
|
I've tested, and I've also tested what happens when we have more than 1 home in 1 menu, e.g. the "all languages" and the French homes in the "Main Menu".
And in the menu we get with and without this PR: As you can see we have duplicate entries for "Main Menu" in any case, but in fact it is only 1 menu. So this PR here does not introduce any new problem with it. And so solving display of menus with multiple homes is another issue which should be solved as soon as there is a decision if such thing shall be officially supported. |
|
I have tested this item ✅ successfully on 2f5bda6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25944. |
|
maybe a dump question but wouldn't it look better if the language tags are right aligned? |
We could reach this goal by adding a Then we would get this If it is what you want I can do. Note: I would not do that type of change in the sidemenu as it is already very narrow. |
|
No, right-aligned doesn’t really look better. |
|
yeah seams not much better |
|
@HLeithner |
|
Thanks adding badges back. |





Following on #25929
Summary of Changes
Adding similar code from #25929 in mod_submenu to get the badges
Testing Instructions
Create a multilingual site. use multilingual sample data.
Click on the dashboard icon on the
Menusline in the sidebar menu.Before patch
No badges for Menus containing a Home menu item.
After patch
Badges are now displayed.