Yet again I find myself using this great module on another site, and I noticed that the embedded views were not paginating. I modified the taxonomy_menu.inc function _taxonomy_menu_page to pass in the pagination parameters, and it worked great.
// about line #285
$output = views_build_view('embed',
views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, '')),
$arguments, FALSE, NULL);
to
$view = views_get_view(variable_get('taxonomy_menu_show_views_'. $vid, ''));
$output = ($view) ? views_build_view('embed', $view, $arguments,$view->use_pager, $view->nodes_per_page) : '';
I haven't the time to test this with other view display types. This could lead to grief when using exposed filters or sorting in the table view type.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch_taxonomy_menu.patch | 609 bytes | jmlavarenne |
Comments
Comment #1
gpantanetti commentedThank you SO much! I've applied this patch to my taxonomy menu module and it works like a charm (I do not need to use exposed filters or table views at this moment).
Comment #2
alan d. commentedI forgot to set the view url, which would almost certainly mean that the exposed filters and sorting would break things. Thus the full code would be:
Comment #3
asak commentedI was going crazy.
So crazy.
THANK YOU so much!
It took me a while to figure out this problem is even related to taxonomy menu...
This works - please commit.
And thanks again...!
Comment #4
jmlavarenne commentedThanks for this Alan D. - it's the solution to my problem.
I've written a patch with your modifications.
Comment #5
indytechcook commentedI will review this along for commit.
Comment #6
marie_t commentedThank you so much for this! I was going crazy trying to figure this out and this patch is exactly what I needed, works great. Thanks.
Comment #7
indytechcook commentedThis is part of the latest DEV. Please test.