[drupal-docs] book module improvements
Charlie Lowe
cel4145 at cyberdash.com
Wed May 18 16:48:36 UTC 2005
puregin wrote:
> See also the discussion in the import/export XML feature 'issue'
> for book module. (http://drupal.org/node/1482)
>
> Basically, this idea has already been implemented in my
> patch http://drupal.org/node/1898. Note that headers alone
> are not enough to represent or derive the sectional structure.
You are over my head a little now :) But I was thinking of the heading
tags. Consider the book output for the "Is Drupal right for you page
http://drupal.org/book/print/22963
The tag for that node in the HTML body is
<h1 id="22963" name="22963" class="book-h1">Is Drupal right for you?</h1>
What we need to do is also specify the parent nid in there as well.
Drupal can then build the structure by using the heading tags to parse
the printer-friendly version into individual nodes and build in a
temporary array the structure using the parent nid name nid
relationship. Wouldn't that work?
More information about the drupal-docs
mailing list