The book.module allows "structured document publishing" but it seems the structure is limited to 21 pages.

If each page can have a navigation weight and there are 21 weights available (-10 through +10), how do you determine where the 22nd page lays?

How do you structure a book of 100 pages?

Without using weights, pages are sorted alphabetical. Using this, one could write a number in at the beginning of each title, but that seems silly.

Is there a way to set where a page appears (a page number in effect) other than weighting it?

Comments

marknewlyn’s picture

Hi

This isn't the generic answer you are probably looking for but it doesn't involve any code so thats a bonus.

I have a site which has books with 300+ pages all ordered the way I want them and it works only because of structure. Our books have "parts" each having child "chapters" and each chapter having child "sections" where a section is then probably what you are calling a page but with additional structure like we have you can have 21^3 "pages" before the Drupal weights become a problem.

Perhaps your book could be structured into Chapters or Parts? That would be relatively easy without involving any code.

Alternatively I guess someone could try to get the range of available weights expanded?

--
Mark Horner
Jabber/AIM/Yahoo/Gizmo/Skype/Google: marknewlyn

Co-author:
http://www.fhsst.org
http://savannah.gnu.org/projects/fhsst

techczech’s picture

Another (although not ideal) option would be to number the titles of your book nodes.

______________________
Dominik Lukes
http://www.dominiklukes.net
http://www.hermeneuticheretic.net
http://www.czechupdate.com
http://www.techwillow.com

swimswimswim’s picture

Thanks, Mark.

Is my understanding correct that you are creating "parts" and "chapters" simply by creating more child pages (see visual reference below)?

BOOK
-Part A
--Chapter I
---Section 1
---Section 2
---Section 3
...
---Section 22
--Chapter II
---Section 1
---Section 2

-Part B
--Chapter I
---Section 1
---Section 2
---Section 3

-Part Z
--Chapter I
---Section 1

And that you are using navigation weights (-10 - +10) on each "Chapter," "Part," and "Section?"

marknewlyn’s picture

Yes, thats all we do. If you can't break yours up though then I guess a larger range of weights would be necessary (and shouldn't be too hard I presume). Although, I think you'll need to modify your core code.

Cheers

Mark

sepeck’s picture

That's how the handbook is essentially organized. It's more then a few hundred pages. Looks like some folks may be working on improvements in Drupal 6.0

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide