User tests: Successful: Unsuccessful:
Articles News module uses com_content.article context to call content plugin when it should call com_content.featured or com_content.category context depending on module's parameters.
Articles News module should behave like a blog view or a featured articles view as it displays categories articles, featured or not. Specific plugins working on blog view/featured view don't work.
This behaviour is conform with com_content/srv/View/Featured/HtmlView.php (line 159 and below) and com_content/srv/View/Category/HtmlView.php (line 108 and below) use of triggerEvent commands
Set Trigger Plugin Events parameter in Articles News module.
Articles News module calls content plugin with com_content.article context
Articles News module calls content plugin with com_content.featured or com_content.category context depending on its parameters
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
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
Labels |
Added:
PR-4.4-dev
|
Title |
|
Title |
|
This PR only applies to Articles News module.
This module displays categories articles like a blog.
The PR sets context with same value than in articles category view or featured articles as it does not display a single article but articles from one or more categories.
A better approach could be to set the context with its real value, something like com_module.articlesnews.
It does not break any core plugins call and it gives a correct context.
This PR only applies to Articles News module.
oops I missed that
Hi,
Just found Factory::getApplication()->scope to determine who's calling my plugin.
In this case, scope contains mod_articles_news.
Pascal
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-09-19 15:36:37 |
Closed_By | ⇒ | conseilgouz |
Surely this breaks existing sites and expected behaviour