List module get its query

urbido

Member
Hi everyone. I am using custom functions to show filtered data in list (listid = 43) like this
$listModel = JModelLegacy::getInstance('List', 'FabrikFEModel');
$listModel->setId(43);
$query = $listModel->buildQuery();

I would like to get module (moduleid = 247) query, which I tried like this
$listModel = JModelLegacy::getInstance('List', 'FabrikFEModel');
$listModel->setId(43);
$listModel->setRenderContext(247);
$query = $listModel->buildQuery();

but I get same data as previous example. I tried to change scope of app, didn`t help. Is there any proper way to get ListModule model and be able to access its parameters and functions (like buildQuery())?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top