Skip to content

List Render and Filters #31

@patrickheeney

Description

@patrickheeney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions