? ? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
30 Oct 2016

Pull Request to add tag filter option to article blog menu item

Summary of Changes

Adds a new parameter to the menuitem for category article blogs. The necessary code for the actual filtering is already present in the model for quite some time.

Testing Instructions

Create a new menu item for the com_content articles blog and select a tag in the menu item.
You should only get the articles with that selected tag.

Documentation Changes Required

None

avatar Bakual Bakual - open - 30 Oct 2016
avatar Bakual Bakual - change - 30 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2016
Category Front End Components
avatar Bakual Bakual - reference | ff875da - 30 Oct 16
avatar alikon alikon - test_item - 30 Oct 2016 - Tested successfully
avatar alikon
alikon - comment - 30 Oct 2016

I have tested this item successfully on ff875da


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

avatar Bakual Bakual - change - 31 Oct 2016
The description was changed
avatar brianteeman
brianteeman - comment - 14 Nov 2016

The code works perfectly - unfortunately the text for the tooltip is completely wrong

image

you will need to add a new string in en-GB.ini

JTAGS_FIELD_SELECT="Select the tag to use."

avatar brianteeman
brianteeman - comment - 14 Nov 2016

@bakual I did two PR on your branch to add the new string

avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2016
Category Front End Components Administration Language & Strings Front End com_content Components
avatar brianteeman
brianteeman - comment - 14 Nov 2016

I have tested this item successfully on ca1f535


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

avatar brianteeman brianteeman - test_item - 14 Nov 2016 - Tested successfully
avatar Bakual Bakual - change - 14 Nov 2016
Labels Added: ?
avatar Bakual Bakual - change - 14 Nov 2016
Labels Removed: ?
avatar Bakual
Bakual - comment - 14 Nov 2016

I had to manually do the one (was for wrong branch) and messed it up a bit. But now it should be fine.
Thanks for the input!

avatar brianteeman
brianteeman - comment - 14 Nov 2016

I have tested this item successfully on 263ba57


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

avatar brianteeman brianteeman - test_item - 14 Nov 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Nov 2016

this seems to work fine, some comments (maybe for another PR):

  • Shouldn't we allow several tags, instead of just one?
  • Shouldn't we made the same funcionality to category list menu too?
  • Shouldn't we made the same funcionality to all menu category in other components too (ex: list contacts in a category)?
avatar brianteeman
brianteeman - comment - 14 Nov 2016

I thought the same but its for another pr.

avatar jeckodevelopment
jeckodevelopment - comment - 15 Nov 2016

I have tested this item successfully on 263ba57


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

avatar jeckodevelopment jeckodevelopment - test_item - 15 Nov 2016 - Tested successfully
avatar Bakual
Bakual - comment - 15 Nov 2016

Shouldn't we allow several tags, instead of just one?

The current code (https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/articles.php#L88-L89) only allows an integer. If you want multiple tags, you will have to adjust the filtering code first so it can take an array of ids (and for B/C an integer). Com_tags itself has several places where it accepts a single tag, a coma-separated list of tags or an array of tags. We had some not-so-funny security issues because of that.... So if you want to do it, make sure input filtering is done properly.

Shouldn't we made the same funcionality to category list menu too?
Shouldn't we made the same funcionality to all menu category in other components too (ex: list contacts in a category)?

If you think this is important, feel free to make a PR. I just did this to show it's already possible.

avatar andrepereiradasilva
andrepereiradasilva - comment - 15 Nov 2016

Sure. it can be other PR.

avatar jeckodevelopment jeckodevelopment - change - 15 Nov 2016
The description was changed
Status Pending Ready to Commit
Labels
avatar jeckodevelopment
jeckodevelopment - comment - 15 Nov 2016

RTC


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

avatar jeckodevelopment jeckodevelopment - change - 15 Nov 2016
Labels Added: ?
avatar jeckodevelopment jeckodevelopment - edited - 15 Nov 2016
avatar jeckodevelopment jeckodevelopment - change - 15 Nov 2016
Labels Removed: ?
avatar jeckodevelopment jeckodevelopment - change - 15 Nov 2016
Milestone Added:
avatar rdeutz rdeutz - change - 15 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-15 21:34:41
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - reference | 0ef219f - 15 Nov 16
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - close - 15 Nov 2016

Add a Comment

Login with GitHub to post a comment