? ? Pending

User tests: Successful: Unsuccessful:

avatar sakiss
sakiss
5 Sep 2019

Problem

Cannot filter further the items returned by the components.
For example if we want to filter our content (e.g. through a filtering module), this cannot be done as access to the component ListModel's query is not provided.

Although plugin events are triggered for most of the basic model's functions (e.g. save and delete). There is no event triggered before reading a list of results/items.

Provided Solution

A plugin trigger at the end of the _getListQuery function of the ListModel.
By doing that , the getItems query can be altered (e.g. adding extra conditions), by a plugin.

By doing that, the event is triggered for all the components that extend the ListModel and do not overwritte the _getListQuery method (i.e. all the native components and most of he 3rd party).

3f7fdf9 4 Aug 2019 avatar dgrammatiko init
e256a48 4 Aug 2019 avatar dgrammatiko init
536d397 4 Aug 2019 avatar dgrammatiko init
avatar sakiss sakiss - open - 5 Sep 2019
avatar sakiss sakiss - change - 5 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Sep 2019
Category Unit Tests Repository Administration
avatar sakiss sakiss - change - 5 Sep 2019
Title
On after get list query
[4.0] On after get list query
avatar sakiss sakiss - edited - 5 Sep 2019
avatar sakiss
sakiss - comment - 5 Sep 2019

I am closing the PR. Seems like i checkout wrong branch.

avatar sakiss sakiss - change - 5 Sep 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-09-05 14:56:11
Closed_By sakiss
Labels Added: ? ?
avatar sakiss sakiss - close - 5 Sep 2019

Add a Comment

Login with GitHub to post a comment