? ? Success

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
17 Jan 2019

This PR adds in the Latest News Module (mod_articles_news) an option exclude the current article to filter the current article from displaying in the module.

Summary of Changes

If you configure the Latest News Module to display Articles from Category "A",
and the Module is displayed on an Article page (that is also in Category "A"),
the Article is displayed on the page and in the Module.

  • This PR adds an option in the Latest News Module to exclude the current article.
  • The option is OFF by default (so the current behavior before installing the patch is default)
  • It also checks for com_content being active to prevent that other components that use an "id" might interfere with the Latest News Module output.

Testing Instructions

  • Create a Category "A"
  • Add 5 different articles with different titles
  • Create a menu item for Category blog and another for Single Article
  • Assign the "Latest News" Module to the two pages, configure display title and change the limit to 5.
  • If you are on an Article page, the com_content component article view will display the article, but it is also visible in the "Latest News" Module output.
  • In the parameters of "Latest News" Module, switch on "Exclude current Article" and check the page again.

mod_articles_news-exclude-article

avatar pe7er pe7er - open - 17 Jan 2019
avatar pe7er pe7er - change - 17 Jan 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jan 2019
Category Language & Strings Modules Front End
avatar tecpromotion
tecpromotion - comment - 31 Jan 2019

I have tested this item successfully on 1da3533

I have tested this successfully on Joomla! 3.9.2.


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

avatar tecpromotion tecpromotion - test_item - 31 Jan 2019 - Tested successfully
avatar viocassel
viocassel - comment - 3 Feb 2019

I have tested this item successfully on 1da3533


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

avatar viocassel viocassel - test_item - 3 Feb 2019 - Tested successfully
avatar Quy Quy - change - 3 Feb 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 3 Feb 2019

RTC


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category Language & Strings Modules Front End Front End Modules
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
mod_articles_news - Exclude current article
Exclude current article
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2019
Category Modules Front End Language & Strings Modules Front End
avatar brianteeman
brianteeman - comment - 20 Apr 2019

this should not be rtc

avatar Quy Quy - change - 20 Apr 2019
Status Ready to Commit Pending
avatar infograf768 infograf768 - change - 21 Apr 2019
Labels Added: ?
Removed: J3 Issue
avatar pe7er
pe7er - comment - 21 Apr 2019

Thank you all for testing!
This PR was for Joomla 3.x but won't be added in that series anymore.
I've redone this PR for Joomla 4: #24672
Closing this PR...

avatar pe7er pe7er - change - 21 Apr 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-04-21 20:33:29
Closed_By pe7er
Labels Added: ?
avatar pe7er pe7er - close - 21 Apr 2019

Add a Comment

Login with GitHub to post a comment