Greetings,
i just integrated the Paging module into my D6 site, and it works great. However, i was wondering if there was a way to create a "Show All" or "Show Entire Article" link along w/ the page numbers...
i've got a "print" button that i use js to simply print the article by pulling the content by div id, and i wanted to be able to give people the option of showing the entire article on a single page, and then hitting Print (or maybe automate it so it prints the entire article automatically for them) so they don't have to go to each page and then print.
TIA.
Comments
Comment #1
Gurpartap Singh commentedTo add a "Show all" link in the pager, override the theme('pager') function and add the following right before the return statement:
I do not plan to ship an overridden theme_pager in paging. Let Drupal maintain that part. :)
Comment #2
Palo M. commentedAs I tested, altering the theme works... but only for showing the full content. Switching back from full to paged content does not work (seems pager is not present at all in this case).
I altered the function paging_link, adding following at the end (before return statement):
The "Show full page"/"Show paged" are in the links section, so they are always displayed whenever the paging should apply for the content.
This fits my needs better than theming the pager.
If there would be additional option for this, it could be even configurable (just as for "Read more" link) so it would not disturb those who do not want to use it... and theming of the pager would still be possible for those who prefer that way...
Is there a chance to have this feature built in module?
Comment #3
Gurpartap Singh commentedI think we can make it so that pager is still available even in full view.
Comment #5
naero commentedDoes this also work in D5??