?
avatar kmu360
kmu360
26 Jun 2020

Steps to reproduce the issue

Backend

  1. Create articles with different tags and in multiple languages
  2. Create menu point with Menu Item Type "List All Tags"
  3. Change Language Filter to specific language

image

Frontend

  1. Klick on the new menu point (List of Tags)
  2. Klick on a Tag ...

Expected result

Frontend output when selecting a tag should be a list with articles with the selected tag in the selected (or current) language

Actual result

All articles with the selected tag are displayed regardless of language setting
Neither with "current" nor with "specified language"

Bug?

tag_list_language_filter is not being stored in the database.

Brute force debugging info

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();

image

Expected output would be:
Current language in Setting is: German (Germany) or de-DE (not sure)

System information

Joomla! Version: Joomla! 3.9.19 Stable
Translation component: falang (latest) - Been in contact with Stephane, no bug from falang.

Or am I wrong...

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...

avatar kmu360 kmu360 - open - 26 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jun 2020
avatar infograf768
infograf768 - comment - 28 Jun 2020

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.

avatar kmu360
kmu360 - comment - 28 Jun 2020

I totally agree. But also current is not stored In the database when set in the backend.

avatar infograf768
infograf768 - comment - 28 Jun 2020

current language (or any language ) IS saved for the List all tags menu item which uses the tags template (and not tag/default.php).

Screen Shot 2020-06-28 at 08 40 32

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.

Screen Shot 2020-06-28 at 08 42 14

It is also used correctly by Tagged Items menu item.

Screen Shot 2020-06-28 at 08 51 10

avatar kmu360
kmu360 - comment - 28 Jun 2020

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.

avatar kmu360
kmu360 - comment - 28 Jun 2020

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.

avatar infograf768
infograf768 - comment - 28 Jun 2020

I am not sure I can help as you use falang. I suggest you contact Stephane referring him to this topic.

avatar kmu360
kmu360 - comment - 28 Jun 2020

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!

avatar infograf768
infograf768 - comment - 28 Jun 2020

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.

avatar infograf768
infograf768 - comment - 28 Jun 2020

As it is not a joomla issue, I am closing this.

avatar infograf768 infograf768 - close - 28 Jun 2020
avatar infograf768 infograf768 - change - 28 Jun 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-06-28 10:10:10
Closed_By infograf768

Add a Comment

Login with GitHub to post a comment