User tests: Successful: Unsuccessful:
Pull Request for Issue #6687 .
Tags in Joomla so far had only partial support for multilanguage and contained partial, non-working code for associations. This PR adds associations completely, cleans up the code around them and brings the multilanguage behaviour of com_tags up to par with the rest of the Joomla core components.
Associations
#__associations with the context com_tags.tag while saving a tag. The rest of TagModel::save() (nested set handling, path rebuild, events) is unchanged.* as its language.Multilanguage
tag_list_language_filter option was removed from the component options and the tag menu item types, because it conflicts with how multilinguality works in the rest of Joomla. When multilanguage is enabled, com_tags now behaves like the other components:
*,*,*,RouteHelper::getComponentTagRoute() accepts an array of tag IDs and adds the language to the URL when multilanguage is enabled.Tests
tests/System/integration/administrator/components/com_tags/TagAssociations.cy.js cover the associations tab, creating, preselecting and removing associations, the list column and the Multilingual Associations component.id (#__languages), and there is a new db_createLanguage command.1. General tag functionality (monolingual site)
2. Set up a multilingual site
The fastest way is to install a second language (e.g. German via System > Install Languages) and then use the "Multilingual Sample Data" from the Home Dashboard. Otherwise:
3. Associations in the backend
4. Multilingual frontend
5. Automated tests
npx cypress run --spec tests/System/integration/administrator/components/com_tags/TagAssociations.cy.js passes.Tags can't be associated, and the "Language Filter" option of com_tags makes the tag views and modules behave differently from the rest of a multilingual site.
Tags can be associated like articles, contacts or categories, and the tag views and modules follow the current language.
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
The removal of the tag_list_language_filter option and the new associations need to be documented in the help screens for com_tags and the tag menu item types.
| Status | New | ⇒ | Pending |
| Category | ⇒ | com_tags Administration Language & Strings Front End Libraries |
| Labels |
Added:
Language Change
?
|
||
| Category | com_tags Administration Language & Strings Front End Libraries | ⇒ | com_tags Administration Language & Strings Front End com_content Libraries Modules |
| Title |
|
||||||
| Labels |
Added:
?
|
||
| Title |
|
||||||
| Labels |
Removed:
?
|
||
| Labels |
Added:
?
|
||
Since I had to rebase this from 4.3 to 4.4 and now to 5.0, I first have to check all the changes here if they are still correct. Switching back to draft for now.
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-04-18 12:06:34 |
| Closed_By | ⇒ | Hackwar | |
| Labels |
Added:
?
Removed: ? |
||
Why closed? Should we reopen the original issue?
| Status | Closed | ⇒ | New |
| Closed_Date | 2023-04-18 12:06:34 | ⇒ | |
| Closed_By | Hackwar | ⇒ |
| Status | New | ⇒ | Pending |
This pull request has been automatically rebased to 5.1-dev.
| Labels |
Added:
Feature
Removed: ? |
||
| Title |
|
||||||
| Labels |
Added:
?
|
||
| Labels |
Added:
?
Removed: ? ? |
||
After local installation of Full Package.zip tried installation of german and persian farsi, but Unable to detect manifest file.
After local installation of Full Package.zip tried installation of german and persian farsi, but
Unable to detect manifest file.
thats a known issue when using a development package as there are no language packs available for that version. For testing you can download a language pack for 5,.1 directly and then use the extension installer https://downloads.joomla.org/language-packs
I have tested this item ? unsuccessfully on 418dfb1





Note 1: There is no difference if the tag is saved
xNote 2: Tags associations tab looks different to article associations tab (Select, Create buttons):

This pull request has been automatically rebased to 5.3-dev.
| Title |
|
||||||
| Labels |
Added:
?
Removed: ? |
||
This pull request has been automatically rebased to 6.0-dev.
| Title |
|
||||||
| Labels |
Added:
PR-6.0-dev
Removed: ? |
||
I have tested this item 🔴 unsuccessfully on 6662268
Same results as @fgsw back in 2024 with multi-lingual setup where setting up initial Tags language association works but you can't setup a 2nd or 3rd pair (when you try it changes the 1st pair association)
ALSO, if you try to go to Components --> Multilingual Associations and then view Associations filtered by Tags, the component crashes with:
An error has occurred.
500 Unknown column 'a.created_by' in 'SELECT' Unknown column 'a.created_by' in 'SELECT'
Return to Dashboard
and after that you can't get back into Multilingual Associations without seeing that crash message - only way around that is to delete all browser cache, cookies, LocalStorage etc for that site and then you can see the component again after re-logging in.
I have tested this item ✅ successfully on d2f2894
I have re-tested this successfully.
(and the Components --> Multilingual Associations --> Tags works as expected and doesn't crash ;) )
Thanks @Hackwar!
Surely this will break all existing sites that have menu items for tags with language filters
I have tested this item 🔴 unsuccessfully on d2f2894
I have re-tested this successfully. (and the Components --> Multilingual Associations --> Tags works as expected and doesn't crash ;) )
No it doesnt - see video
This pull request has been automatically rebased to 6.1-dev.
| Title |
|
||||||
| Labels |
Added:
PR-6.1-dev
|
||
This pull request has conflicts, please resolve those before we can evaluate the pull request.
| Labels |
Added:
Conflicting Files
|
||
This pull request has been automatically rebased to 6.2-dev.
| Title |
|
||||||
This pull request has conflicts, please resolve those before we can evaluate the pull request.
| Labels |
Added:
PR-6.2-dev
Removed: PR-6.0-dev PR-6.1-dev |
||
| Title |
|
||||||
| Labels |
Added:
PR-6.3-dev
Removed: Conflicting Files PR-6.2-dev |
||
| Category | com_tags Administration Language & Strings Front End Libraries com_content Modules | ⇒ | com_tags Administration Language & Strings Front End com_content Libraries Modules JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
|
||
@exlemor and @brianteeman could you check this again? I fixed a series of bugs and I hope we can finally get this going...
I'm still concerned about the removal of tag_list_language_filter. This isn't just removing an option from the UI. Existing sites may rely on that setting, and changing its behaviour could alter what visitors see after upgrading. Also just removing the option prevents new menu items using that filter but it doesnt remove the filter from an existing menu item and now there is no way to remove it
I understand that, however my argumentation would be, that the option actually was a bug. I don't see a situation where tags should behave differently to all other content items in Joomla. Removing it is not difficult, simply open the menu item and save it again. I do agree however, that that is not really self-evident. Maybe we need to remove the option from everywhere and move this to 7.0? I wouldn't be happy about that, if we need to move this from 4.3 to 5.x to 6.x and now maybe even to 7.0... But whats another few months when it's already been 4 years...
self evident or not its a breaking change
If users could see Irish articles using the tag on the Italian version of the website, that's not ok.
That's what language associations and a module for switching the website to another language are for, so this update fixes the bug that wasn't fixed when Joomla started using language associations and tags.
I have tested this item? unsuccessfully on 0d7ed82
Ok, i tried the following and didn't succeed. The Test failed at least partly.
Steps I took.
I stopped the test here.
Thanks for your work so far!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39140.