Backend
Frontend
Frontend output when selecting a tag should be a list with articles with the selected tag in the selected (or current) language
All articles with the selected tag are displayed regardless of language setting
Neither with "current" nor with "specified language"
tag_list_language_filter
is not being stored in the database.
Added the following code to an override to "tag\default.php"
$language = JComponentHelper::getParams('com_tags')->get('tag_list_language_filter');
echo '<br />Current language in Setting is: ' . $language;
$currentLanguage = JFactory::getLanguage();
echo '<br />Current language is: ' . $currentLanguage->getName();
echo '<br />Current Lang-tag is: ' . $currentLanguage->getTag();
Expected output would be:
Current language in Setting is: German (Germany) or de-DE (not sure)
Joomla! Version: Joomla! 3.9.19 Stable
Translation component: falang (latest) - Been in contact with Stephane, no bug from falang.
As far as I understand, the language filter limits the output to articles in the selected language and not to articles with a tag that has a specific language, right?
If this is the case, my approach of displaying articles for a specific tag in a specific language would fail anyway (or at least multiply the work by 3). But still the tag_list_language_filter
would not be stored in the database...
Labels |
Added:
?
|
I totally agree. But also current
is not stored In the database when set in the backend.
current language
(or any language ) IS saved for the List all tags
menu item which uses the tags
template (and not tag/default.php
).
But I wonder indeed why we have that field there. We may have a bug as it works fine for other cases.
It works for the compact list of tagged items
(which uses tmpl tag
layout=list
and, in this case, it does filter by the language selected and displays correctly links to items tagged to that language (and click works fine) while the menu is itself used in another language.
It is also used correctly by Tagged Items
menu item.
Firstly: Thanks for looking into it!
So in my case the workaround would be using tagged items
menu or so.
...and leaving the suspect bug to you guys as my skills are far to weak to have a deeper look.
There's something weird going on...
Just tried with Tagged Items
and compact list of tagged items
and it worked fine for the first time!
And then, after a reload, it is the same behaviour with showing all languages again.
And no chance to revert. Also when setting up a completele new menu point "from scratch" it results in all languages being shown.
@infograf768 I can give you the URL or even direct access to the project if you think that might help.
I am not sure I can help as you use falang. I suggest you contact Stephane referring him to this topic.
I´m in contact with him already - And he said it doesn´t come from falang :)
No worries: I´ll somehow live with, it.
And frankly: My single issue is not important as long as it is no core bug.
Thanks again!
I had forgotten: found the use of the Language filter field for the List All Tags
menu item. It is very different from the 2 other menu items.
In that case, it filters the tags displayed depending on the tag language (and not the items).
If one choses French, then it will display the tags tagged to French as well as for All languages.
So, if you have no tag set to ALL and add the tag tagged to French to only French articles, that tag will display and when clicking on the tag name you will display all articles tagged to French.
As it is not a joomla issue, I am closing this.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-06-28 10:10:10 |
Closed_By | ⇒ | infograf768 |
In Joomla multilingual native feature, the filtering is done depending on the language of the item filtered and not the 'language filter' in tag.
I.e the
current
setting is the only one that makes sense.