-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Add tag filter none com_newsfeeds #45460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: BrianTeeman <[email protected]>
administrator/components/com_newsfeeds/src/Model/NewsfeedsModel.php
Outdated
Show resolved
Hide resolved
…l.php Co-authored-by: Richard Fath <[email protected]>
@richard67 I know this was your query but I wonder if it should be changed from to |
@brianteeman No, it's a hard-coded string and nothing from input, so no need for a bind variable here. See also where it is not modified by this PR: https://github.com/joomla/joomla-cms/pull/45460/files#diff-38c1de4d15fa0ac13f1c64c411eda1ae91777431a00ca4a6ba2a2e906f9c1138R337 |
I was prompted to ask the question when I saw joomla-cms/administrator/components/com_categories/src/Model/CategoriesModel.php Line 363 in ba5d40a
|
never mind I can see why com_categories is different |
Yes, cause there the code is used for different contexts (type aliases). |
I have tested this item ✅ successfully on b905a3f Works as expected: None, TagA, TagB, TagA+TagB, None+TagA, None+TagB, None+TagA+TagB :) This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45460. |
I have tested this item ✅ successfully on b905a3f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45460. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45460. |
Thank you all for your contribution. |
thanks |
The aim of this PR is to add a new filter option when filtering for tags that allows you to filter all newsfeeds that have no tags at all.
This is only for com_newsfeeds (articles and featured articles already done with #45274)
To test create four newsfeeds
Newsfeed 1 no tags
Newsfeed 2 taga
Newsfeed 3 3 tagb
Newsfeed 4 taga and tagb
Using the filter check that the filter works correctly when selecting any of the tags AND/OR items with no tags (None)
You should be able to filter the newsfeeds on any single tag or combination of tags AND filter the contacts with no tags and any single tag or combination of tags
Thanks to @richard67 for the query
Link to documentations
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