-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[5.2] Multilang: Remove restrictions for home language menu items #43862
Conversation
Tested Successfully but 2 things to consider:
|
indeed - yours is still nested -mine not |
please post the full screenshot |
Sorry was my mistake, the nested Item was set to "all" |
I have tested this item ✅ successfully on bc7029b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
I have made a pr to your branch for the multilangstatus issue mentioned above |
Remove test for home
I have tested this item ✅ successfully on 1fd1d4e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
With the PR there are two exceptions if as database is PostgreSQL is used. `ERROR: column "m.language" must appear in the GROUP BY clause or be used in an aggregate function` If the columns in GROUP BY are simple added again, there are multiple menu entries if multiple home set in one menu. Solution is to use the aggregat function MAX. Tested with * PostgreSQL PDO * MySQL with MySQLi * MySQL with MySQL PDO * MariaDB with MySQL PDO * MariaDB with MySQLi On base of * PR 43862 with Patch Tester * npm update joomla-cypress 1.1.1 * this PR fix-postgres * npx cypress run --spec tests/System/integration/install/multi-lang-menu.cy.js Test Support PR 43862 with ✓ install Japanese language pack (9784ms) ✓ install Ukrainian language pack (8487ms) ✓ install German language pack (8309ms) ✓ enable plugin 'System - Language filter' (1903ms) ✓ create '2nd menu' (1484ms) ✓ create 1st menu entry de as HOME in '2nd menu' (5601ms) ✓ create 2nd menu entry ja as HOME in '2nd menu' (4936ms) ✓ create 3rd menu entry uk as HOME in '2nd menu' (5392ms) ✓ create '3rd menu' (1434ms) * checked five times that the HOME symbol is displayed if more than one Home menu entry is set, otherwise the correct language (uk-UA, ja-JP or de-DE) is displayed for each of the three entries if there is only one menu entry with Home
Fix PostgreSQL failure
We had an issue with PostgreSQL in the admin menu, but thanks to @muhme this is now fixed. @brianteeman @coolcat-creations would you be able to test this again? Basically it would be enough to make sure that the backend menu still functions as expected. |
Back to pending. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
I have tested this item ✅ successfully on 7d82dcd This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
On a nightly build:
See Icon "Home Default" (white House) in "Main Menu Testing" and "Main Menu": Test System Information: |
@fgsw That is the expected behavior. If a menu contains more than one home menu item, it should show the house icon next to it. We can't really display the different flags, since that would already get ugly with 2 flags. If you could mark this as tested successfully, then I would try to still get this into beta 1. |
I have tested this item ✅ successfully on ea5b52c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43862. |
Thx |
Awesome work Super Joomlers! Thanks for this feature |
joomla/joomla-cms#43232 + joomla/joomla-cms#43378 + joomla/joomla-cms#43216 + joomla/joomla-cms#43260 + joomla/joomla-cms#43386 + joomla/joomla-cms#43575 + joomla/joomla-cms#43491 + joomla/joomla-cms#43760 - (upmerge, внесено в 5.1х) joomla/joomla-cms#43247 + joomla/joomla-cms#43579 + joomla/joomla-cms#43690 + joomla/joomla-cms#43829 + joomla/joomla-cms#43840 + joomla/joomla-cms#43841 + joomla/joomla-cms#43885 - (upmerge, только для др. пакетов) joomla/joomla-cms#43223 + joomla/joomla-cms#43810 - (только для en-GB) joomla/joomla-cms#43898 + joomla/joomla-cms#43432 + joomla/joomla-cms#43870 + joomla/joomla-cms#42850 + joomla/joomla-cms#43937 - (upmerge, только для др. пакетов) joomla/joomla-cms#43862 + joomla/joomla-cms#43975 + joomla/joomla-cms#43910 + joomla/joomla-cms#43965 + joomla/joomla-cms#43738 + joomla/joomla-cms#43814 + joomla/joomla-cms#44000 + joomla/joomla-cms#44050 + (upmerge, с 4.4.9) joomla/joomla-cms#43966 + joomla/joomla-cms#44065 +
Summary of Changes
The multilanguage system currently requires each home menu item to be in a separate menu, making the setup unnecessarily complex. There is no reason for forcing this behavior and this PR removes that. With this PR, the restriction is removed and you can put all home menu items into one menu. In the backend menu, the menu listing is changed to display the home icon for menus with more than one home menu item.
Testing Instructions
Setup a multi language website and try to save all home language menu items in one menu.
Actual result BEFORE applying this Pull Request
Error when saving.
Expected result AFTER applying this Pull Request
No errors.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed