Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Render and Filters #31

Open
patrickheeney opened this issue Sep 28, 2013 · 0 comments
Open

List Render and Filters #31

patrickheeney opened this issue Sep 28, 2013 · 0 comments

Comments

@patrickheeney
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant