Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
other
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2005 at 10:36 UTC
Updated:
1 Dec 2005 at 18:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
lennart commentedI find this to be an important and interesting feature!
Best wishes,
Lennart
Comment #2
scutari commentedI'm very happy it's useful!
With this additional patch (it's against node.module) the
<!-- page -->tag is changed to<!-- pg -->innode_previewso that paging is not triggered. The whole page in displayed instead.Yes, it's a dirty hack, and comments are welcome if anybody knows how to do it in a clean way.
Regards
Marco
Comment #3
sgwealti commentedThe onion website just switched to drupal and they seem to have a pretty good pager for their nodes. I wonder how they did it.
Comment #4
Bèr Kessels commentedIMO this really needs to live in a module.
Comment #5
scutari commentedIt can be done in a module using a couple of hooks, but in my opinion it's overkill for such a small change. I think the proper place for such a feature is core.
A new core module may be fine, too, but I would like to hear some other comments before I
make up my mind.
Comment #6
robertdouglass commentedIt would need a menu item to intercept the node/nid/pagenumber param, and a filter to split the pages at a configured length. Ber is right that this should start out as a module, and then when it has proven itself, get integrated into core. I definitely want to see it happen but won't get around to programming it myself anytime soon.
Comment #7
robertdouglass commentedHas anyone considered asking The Onion if they would be able to share the code that does that? It might be that they wrote custom Drupal code just for the purpose. Seeing as they are using Drupal to make one of the best looking news sites on the web, they might be receptive to giving back to the community.
Comment #8
tostinni commentedI wrote them yesterday and I hope they would give us some feedback. Their site is looking very good and integrate very well some contributed and custom module.
Regarding pagination, I foud this link a while ago, I don't know if it works, but might worth the glimpse : http://drupal.org/node/23362#comment-43694
Comment #9
Prometheus6 commentedIt works...I'm the guy that told him how to do it.
http://drupal.org/node/23362#comment-40754
It's so easy I honestly thought it was left out on purpose.
Comment #10
scutari commentedOk, that's a paging module based on my first patch (it does not fix the preview bug).
I think I'll be able to include my preview fixes (those in the second patch I sent) before this weekend.
I reverted the first patch on my drupal site, and used the paging module instead with good results.
Regards
Marco
Comment #11
Stefan Nagtegaal commentedCould someone post an url to "The Union"?
So others could see what you guys mean?
Steef
Comment #12
tostinni commentedI wrote them yesterday giving them this link : Is the Onion using Drupal?
Till now, I didn't have any response, so I will let them a little more time and hope they will respond.
I used their contact form, if anyone knows a better way to contact them, go ahead.
Comment #13
eafarris commentedStefan:
they're talking about www.theonion.com, one of, if not the, premiere humorous "fake news" sites on the 'net. And, sure enough, the html head shows the link to misc/drupal.css. How exciting! This needs promoted.
Comment #14
scutari commentedUpdated version of paging.module:
* fixed typo in the description.
* the patch no node.module is not needed any more.
Still TODO:
* node/nid/pagenumber param.
* split the pages at a configured length.
Tested on my site and is seems to be working.
Regards
Marco
Comment #15
chx commented1. 4.6.3 and feature request? Features go in HEAD.
2. As it was said this module need to live on its own, it has nothing to do with core ATM
I feel tempted to remove this from the patch queue.
Comment #16
scutari commentedIf you think that either there's still work to be done or more testing/integration is needed, I agree with you. I'm sorry I forgot to change the feature request's status, but it's my first contribution.
The code, on the other hand, works (in its original form) on the site I'm building (still not on the web, sorry) since april, and I will write a decent help page soon.
A question: what's the reason why node/nid/pagenumber is needed?
Thanks a lot
Marco
Comment #17
scutari commentedNew version of paging.module:
* major cleanup (less hardcoded HTML).
* code now has comments.
Regards
Marco
Comment #18
Stefan Nagtegaal commentedScutari, I'm sure the drupal community does stimulate your work and thank you for your time in this, but the 'Patch queue' is not for uploading modules in the way you are doing here..
I encourage you to move the development of your module from here to the 'Drupal Contributions Repository'.
Some links which are interesting for reading about contributing to drupal:
- Contributing to Drupal;
- You should ask a CVS Account;
- Because you are a module devloper right now, you should read the module developers guide;
Keep up the good work, only in contributions instead of here... ;-)
Yours sincerely,
Stefan Nagtegaal
Comment #19
scutari commentedYou're right, my feature request in not a patch any more.
That's the reason why I set the status to "closed"; I will apply as a module contributor as soon as possible.
Thanks for the advice
Marco
Comment #20
tostinni commentedThanks a lot for your work, I will have a look at, it's a long time needed feature.
Comment #21
scutari commentedThat's a fairly rewrite of the patches above; I added support for viewing the whole page (using
node/nid/allorurl/path?chunk=all) in the process.{Comments,Opinions,Remarks} are welcome as usual.
Comment #22
tostinni commentedWould you mind to apply for a CVS and put this in a contrib module, it would be so easy to find/review/patch...
Comment #23
Uwe Hermann commentedThis is not really closed, it seems.
Comment #24
scutari commentedI closed my own feature request because, well, was not a patch to the base system any more.
But if you think the right status to let people discuss here about paging is "active", so be it.
Comment #25
venkat-rk commentedSincere thanks for this effort, but did you look at (and possibly integrate) Promotheus' pagination module to avoid reinventing the wheel? Sorry I am not a programmer, so feel free to correct me.
Comment #26
scutari commentedI did indeed look to Promotheus' pagination module ... after reinventing the wheel!
I copied some features I had not implemented at the time, however.
Comment #27
scutari commentedSince I really have no time to submit this module, I'm attaching it (final version) and closing this thread.
Comment #28
merlinofchaos commentedI created a module Paging for this project.