WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#148 closed enhancement (wontfix)

view paginated pages as single entry for printing

Reported by: Grod Owned by: mdawaffe
Milestone: Priority: low
Severity: normal Version:
Component: General Keywords: bg|2nd-opinion has-patch
Focuses: Cc:

Description

When using pagination in an entry it should be possible to provide an alternate permalink that gives a printer friendly page. This page would ignore occurances of <!--nextpage--> in a post. This would be useful from an accessibility standpoint , for printing, and for those readers who prefer scrolling over clicking to the next page. The link should be added automatically to the normal permalink in the form of an icon or "print this" text.

Attachments (3)

148.diff (6.1 KB) - added by mdawaffe 8 years ago.
?page=0 yields all content concatenated
148c.diff (7.0 KB) - added by mdawaffe 8 years ago.
same as 148b but with some nofollow stuff
148b.diff (5.7 KB) - added by mdawaffe 8 years ago.
@4144

Download all attachments as: .zip

Change History (15)

comment:2 Grod10 years ago

This feature can be enabled as described here: http://weblog.burningbird.net/archives/2004/07/07/wordpress-modifications/6/
halfway down the page. The modification is simple to make.

comment:3 matt9 years ago

  • Patch set to No
  • Status changed from new to assigned

comment:4 skippy9 years ago

  • Keywords bg|2nd-opinion added
  • Priority changed from normal to low

Would a simple template tag, linking to a printable view, resolve this?

comment:5 skippy9 years ago

  • Owner changed from anonymous to skippy
  • Status changed from assigned to new

comment:6 markjaquith9 years ago

Basically, I think he wants this: Pages: 1 2 3 4 All

Where "All" would compress them all together.

comment:7 markjaquith8 years ago

  • Keywords bg|needs-patch added

comment:8 mdawaffe8 years ago

  • Keywords has-patch added; bg|needs-patch removed
  • Milestone set to 2.1
  • Owner changed from skippy to mdawaffe
  • Status changed from new to assigned

148.diff

  1. Gets rid of more_file parameter in the_content. It doesn't work and there are better methods for this (theme system, permalink filters, rewrite rules...).
  2. If optional all_page_link parameter is passed, display a link that concatenates all pages.
  3. New query is ?page=0 or /my-page/0/ . Could have gone for ?page=all, but that's not i18n friendly.

mdawaffe8 years ago

?page=0 yields all content concatenated

comment:9 mdawaffe8 years ago

148b.diff

  1. same as before, but will apply cleanly.

mdawaffe8 years ago

same as 148b but with some nofollow stuff

mdawaffe8 years ago

@4144

comment:10 mdawaffe8 years ago

Uploaded new versions of 148b and 148c to remove some debugging.

148c.diff: I'm not sure about this, please discuss.

  1. All of 148b.diff
  2. To avoid duplicate content, rel="nofollow" on the "all" link and
  3. meta nofollow,noindex tags on the "all" page. This was done by tweaking noindex() and default-filters.php and throwing a hack into &get_posts.

Is the duplicate content issue a problem at all? If it is, is this a fair solution?

comment:11 matt7 years ago

  • Resolution set to wontfix
  • Status changed from assigned to closed

comment:12 Nazgul7 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.