Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By joel_guesclin on
Errr... Well the question is in the title really - but if there is a limit, why?
Comments
There is no limit imposed by
There is no limit imposed by Drupal. There is of course a limit set by how much text your database can hold. There is a limit imposed by usability: the parent selector during node composition gets very long.
--
Drupal services
My Drupal services
Book module weight range issue
Yes, but the node weight selection only goes up to 15. What if we want to have more than 15 chapters in a book? The book module then begins to behave oddly, giving all pages over this limit a weight of -10, which messes up the order in which the pages are displayed!
Would it help to give the first chapter a weight of -15, and work down from that, thus giving upto 30 chapters?
Marcus.
Child nodes are both sorted b
Child nodes are both sorted by weight and by title. You should be able to get your node in any order with the provided number of weights.
--
Drupal services
My Drupal services
A pertinent point...
the parent selector during node composition gets very long.
Yes indeed. This is something I have already raised as a request to change, to be able to set a "leaf-level" for each book. Better still, to have a two-stage book page entry process, whereby you first choose the book it is to go into, then position it in the book.
As a temporary hack, I propose to do a very simple one-liner in the book module which limits all books to a max leaf-level of three (enough for our needs I believe).
By the way, I have gone into this in more detail here. Any ideas would be welcome.