Closed (cannot reproduce)
Project:
Drupal core
Version:
7.0-beta3
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2010 at 00:46 UTC
Updated:
22 May 2012 at 20:55 UTC
Hi,
I have found bug(?) on node default page. It turns out, that on /node page there is no pager.
I looked in taxonomy page (function taxonomy_term_page) where $buld['pager'] look little diffrent then in node_page_default function.
When i replaced code in node module from taxonomy module pager is displayed.
| Comment | File | Size | Author |
|---|---|---|---|
| node-frontpage-pager.patch | 484 bytes | quex |
Comments
Comment #2
tstoecklerActually
'#theme' => 'pager',is correct. If taxonomy module still does'#markup' => theme('pager')that is a bug.If the pager doesn't display at /node, that, of course, is also a bug.
Comment #3
tstoecklerI just tested locally, with a ~2 day old HEAD, and I get a proper pager.
@quex: Could you provide more information about your setup?
Also: opened #978326: taxonomy_term_page uses pre-render-array theming
Comment #4
quex commentedI upgraded drupal 6.19 with all content, to drupal-7.0-beta3. I use Bartik theme, and i use few modules like views, ctools and gravatar.
Comment #5
tstoecklerSo I am assuming that before the upgrade you had a pager and now you don't.
Could you please check two things:
1. Is your home page handled by Drupal core or is it a view handled by Views module?
2. Under Configuration >> System >> Site information what have you selected as "How many nodes should be displayed on the front page"?
Comment #6
quex commentedMy frony page is handled by Drupal core exacly
function node_page_default(). I have 5 nodes per page.When i replaced '#theme' => 'pager' to '#markup' => theme('pager'), then pager was visible.
Comment #7
tstoecklerHmm. That's very strange.
1. I cannot reproduce that, as stated above
2. '#theme' => 'pager' to '#markup'= > theme('pager') should make no difference (except the latter being less alterable and therefore the former being preferable).
I'll try to look into this in the next days and see if I can find something.
Just for the fun of it, can you apply the patch in #978326: taxonomy_term_page uses pre-render-array theming (changes '#markup' => theme('pager') to '#theme' => 'pager' on taxonomy page) and see if you still get a pager on the taxonomy page?
Comment #8
quex commentedNope, unfortunately still that same. There is no pager on taxonomy/term pages, after apply patch.
Comment #9
joachim commentedThe page on the front page works fine for me.
Comment #10
quex commentedProblem does not exists when i install new drupal7-beta3 site (not upgraded from 6.19).
Comment #11
joachim commentedThanks for reporting back.
Setting correct status.
Comment #12
kip stanning commentedi have the same bug on a d7-site. can't figure out where it's coming from. on a fresh d7-install i could not reproduce it. first i thought it might be caused by front-page module. i first disabled the checkbox for front-page override then turned off the module. none of these made the pager appear.
EDIT: problem seems to result from the presence of more than one pager on the same page with at least some of them having the same pager id. the pager id can be set if you choose to page the output of a view-display (mini or full, the other options of the pager-section in the views-admin-panel don't offer pager-id settings).
drupal-site-search for pager-id: http://drupal.org/search/apachesolr_multisitesearch/%22pager%20id%22