Skip to content

[com_content] - Add tags filtering based on language filter#19509

Merged
mbabker merged 4 commits intojoomla:3.9-devfrom
alikon:patch-69
May 28, 2018
Merged

[com_content] - Add tags filtering based on language filter#19509
mbabker merged 4 commits intojoomla:3.9-devfrom
alikon:patch-69

Conversation

@alikon
Copy link
Contributor

@alikon alikon commented Feb 1, 2018

Pull Request for Issue #19387 .

Summary of Changes

  • unpublished tags are now not returned
  • tags are returned based on Language Filter option setting

Testing Instructions

  • create some tags in different languages and set some to unpublished status
  • create a Category List menu item and set Filter Field to Tags

Expected result

The category list tag filter works as expected

Actual result

  • tags are showed even if they are unpublished
  • tags are showed in all languages always

@ghost
Copy link

ghost commented Feb 1, 2018

@csbalazs please mark your Test as successfully:

  • open Issue Tracker
  • Login with your github-Account
  • Click on blue "Test this"-Button above Authors-Picture
  • mark your Test as successfully
  • hit "submit test result"

@csbalazs
Copy link

csbalazs commented Feb 1, 2018

I have tested this item ✅ successfully on 16830cf

It works now! Thx!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19509.

After the repairs:
Site language: Hungarian, The tag filter only shows Hungarian tags.
1802011
Site language: English, The tag filter only shows English tags.
1802012

$listDirn = $this->escape($this->state->get('list.direction'));
$langFilter = false;

//Tags filtering based on language filter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space after //

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

$langFilter = ComponentHelper::getParams('com_tags')->get('tag_list_language_filter');
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete blank line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@csbalazs
Copy link

csbalazs commented Feb 1, 2018

I have tested this item ✅ successfully on c82a894


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19509.

break;

default :
$langFilter = ComponentHelper::getParams('com_tags')->get('tag_list_language_filter');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to $langFilter = $tagfilter;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@Quy
Copy link
Contributor

Quy commented Feb 1, 2018

I have tested this item ✅ successfully on 3cc5970


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19509.

1 similar comment
@csbalazs
Copy link

csbalazs commented Feb 2, 2018

I have tested this item ✅ successfully on 3cc5970


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19509.

@ghost
Copy link

ghost commented Feb 2, 2018

Ready to Commit after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 2, 2018
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 28, 2018
@alikon alikon deleted the patch-69 branch May 30, 2018 18:24
@joomla joomla deleted a comment Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants