When trying to get all items from my list model inside a plugin, I use this:

$objects = $app->bootComponent('com_foo')->getMVCFactory()->createModel('Objects', 'MyModel', ['ignore_request' => true])->getItems();

Works fine, but if there is a filter active in the list view, the state is being also used inside the above query. How can all active backend list view filter states be ignored when using such a query?

  • ignore_request configuration parameter should be handling this. If that doesn't work, you'll have to debug your model.
    – Sharky
    Oct 3, 2022 at 5:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.