I'm using the default taxonomy_term view, slightly updated. Exported view settings are attached. I've also created a template to display that unformatted view, it's attached as well. It's all working fine, except for the fact that $pager variable is always empty when it shouldn't. Trying to figure out the source of the problem, I've found that the following lines:
function render_pager() {
if (!empty($this->pager) && $this->pager->use_pager()) {
$exposed_input = isset($this->view->exposed_data_raw) ? $this->view->exposed_data_raw : NULL;
return $this->pager->render($exposed_input);
}
return '';
}
- $this->view->exposed_data_raw is empty, so is $exposed_input. Maybe it's the root of the problem, but I couldn't research it deeper since I can't understand where the exposed_data_raw property is set, the mentioned above function looks like the only piece of code where it's referenced. Please help me!
Comments
Comment #1
merlinofchaos commentedThat is probably a red herring. All that is doing is sending exposed input data through so that it will be part of the page numbers so that you do not lose form data while paging.
Is there something else on the same page that also uses a pager?
Comment #2
dawehnerCould you test http://drupal.org/node/698270 Perhaps this fixes your problem.
Did you additional tryed to remove your tpls? Perhaps they are the root of evil :)
Comment #3
dawehnerThe exported view works fine for me here.
Comment #4
dagmarComment #5
marrch_caat commentedHmmm, I can't understand what's wrong, but I hope you could help me... I added another display with style = HTML list and row type = fields, and pager was displayed OK. Then I changed row type to node (teaser or full, doesn't matter), and the pager disappeared.
I've removed all theming from the view and from node display, rebuilt theme cache, but the problem is still reproducible. Page template doesn't contain any more pagers. The patch mentioned by dereine doesn't help. What could I look at then?..
Comment #6
merlinofchaos commentedIf using the 'node' row type, is it set to display comments? If so, that is the problem. Drupal's comments use a pager, and that is pager element ID 0, and that can't be turned off. If that's the case, it interferes with the Views pager element, and you'll need to change that to 1 or something.
Comment #7
marrch_caat commentedWow, that's the problem, thank you, thank you a lot! Setting the view's pager ID to 1, I've made it working fine (though I can't understand why the "preview" feature on the view edit page is working fine anyway). Thank you once more for your help!
Comment #8
marrch_caat commentedWow, that's the problem, thank you, thank you a lot! Setting the view's pager ID to 1, I've made it working fine (though I can't understand why the "preview" feature on the view edit page is working fine anyway). Thank you once more for your help!