Pasting the following HTML input into the “Body” field of a “Book page” set to split on <h1> and <h2>:

<p>This text is the introduction.</p>
<h1>Page 1</h1>
<p>Here is my text for page 1.</p>
<h2>Page 1a</h2>
<p>This is page 1a.</p>
<h2>Page 1b</h2>
<p>This is page 1b.</p>
<h1>Page 2</h1>
<p>This is page 2 and the last line of text.</p>



There is a good article titled “Converting a Word Doc and PDF into a Drupal Book for web display” about using the Drupal 5 version of this module to convert a 945 page PhD dissertation into a Drupal book. The Drupal 5 version is no longer supported, but the Drupal 6 and Drupal 7 versions works the same way and the general method for conversion is the same.

Avoid using data from $form_state['input']

In the Form API, using data from the $form_state['input'] array is a security risk.


The HTML2Book module allows you to create multi-page books by splitting the body text of a book page node into multiple nodes upon save. The split points are based upon HTML heading tags.

This makes it possible to create a book in a word processing program, export the result to HTML, and then use this HTML to create a multipage Drupal book.

COD Glossary of Terms

  • Conference/Event - An event is synonymous with conference and represents the entire occasion as a whole. For example the entire week of Drupal Con would be a single event. A Camp that spans a weekend is a single event.
  • Schedule Item - Items on the schedule but not part of any formal session. (Examples: lunch breaks, social gatherings, etc.)
  • BoF Session - Birds of a Feather sessions (or BOFs) are informal gatherings of like-minded individuals who wish to discuss a certain topic without a pre-planned agenda.


Subscribe with RSS Subscribe to RSS - No known problems