-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Right now you can call $this->listRender($options) from within a controller partial with the parameter list_render_filters => true which doesn't exactly make sense. If the list you are rendering is a different model then the one used in the controller, the filters that get used are the controller ones not the ones you would expect to go with that model. Secondly, no methods exist to apply the filters selected in the list_custom_prepare_func since the filter code is again checking the controller.
I am not sure of a solution for this yet. Perhaps you could pass in the list render filters to be applied and a method in the filter behavior to overload the settings.
this->listRender(array(
'list_render_filters' => true,
'list_render_filters_filters => array(
'categories'=>array('name'=>'Categories', 'class_name'=>'Shop_Categories')
),
));
Maybe it would be better to look at rendering another controller within the controller? Then all the list, filter, ad other behaviors would work.