Query result pass to modules/backend/behaviors/ListController.php


Would be really great if someone has experience with it.
I need to make a query result (such as articles from specific category - so 2 tables) transfer to ListController, to be able to render it in backend.

I understand how to build methods in my plugin Controller to be able to render all of articles right now.

But I don’t understand how to pass my data to ListController methods.

Thank you!

List columns support specifying a relation which performs data joins internally. Perhaps it could be a good path: List Columns - October CMS - 3.x

Otherwise you can use the model attributes to fetch related data, however, it has the n+1 issue when working inside lists. This is overcome by extending the query and eager loading the relations there.