Book weight automatic default value

Categories

Component ID

1174288

Component name

Book weight automatic default value

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a small utility module, which automatically orders book pages on top of their siblings by default. When adding a new book page, if there is a book parent (for instance on /node/add/book?parent=123), the weight of the new book page will default to the highest weight that is smaller than the weight of all sibling book pages. That way you book pages end up on top of the list without you doing anything.

There is currently only a Drupal 6 version.

This is only a sandbox project because it is very small and, in theory, could probably be part of a more generic book weights module.