Closed (won't fix)
Project:
Drupal core
Component:
book.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2003 at 13:50 UTC
Updated:
10 Aug 2004 at 01:50 UTC
Jump to comment: Most recent file
When viewing printer friendly version e.g. http://drupal.org/book/print/336, this produces each of the above headings as h1, when the headings should cascade downward like shown below to properly reflect the hierarchy of nodes. If anyone agrees about this opinion, I will add a feature request for book.module to follow
this behavior.
h1 Section: Drupal handbook
h2 Documentation standards
h3 API documentation standards
h3 Adding code examples
h3 Adding screenshots
h3 Creating lists
h2 How and when do I add a page?
h2 How and when do I link to other pages?
h2 How and when do I update a page?
h2 What is this book about?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | book_printer_friendly_headings.patch | 1.44 KB | moshe weitzman |
Comments
Comment #1
tlindgren commentedI would support you on this feature request. I noticed the same problem recently and I wondered how to make the printer-friendly version more useful, especially with large books.
Comment #2
moshe weitzman commentedComment #3
Kjartan commentedComment #4
moshe weitzman commentedthe attached brief patch implements this suggestion. prior to this patch, depths were available to be formatted via CSS classes but now we present same titles within h1, h2, etc. which is semantically preferable.
Comment #5
moshe weitzman commentedoops. patch has been attached here for months. changing Status.
Comment #6
Kjartan commentedShoudn't the counter be capped at 6? AFAIK HTML only allows from H1-6.
Comment #7
dries commentedThe patch no longer applies: marking this 'active'.
What would happen when the user uses <hx>-tags in page bodies? This is quite common to do as the user assumes that the page title is using <h1> (which is true in the non-printer friendly case).
Comment #8
moshe weitzman commented