0

After I enabled the Book module and go to content, Drupal suggests me of adding a new book page and give it a title.

The only case I'd like to give a page to a book is when it is a gateway for a new chapter; for regular pages I give nothing more than numbers (page 1, page 2, page 20 - new chapter, page 21, page 22 and so forth).

I only ask this because I saw in some video it is mandatory:

screenshot

  • The Book module gives nothing but a content type & each node of a content type should compulsorily have a nod title. A Book Page is not equivalent to a page of a physical book. You could rather say a book page is a chapter; and each chapter of course has a title. I mean, you needn't actually write pages in a chapter right? It can be just 1 long page of a chapter with maybe sections that helps user to navigate within the same page. – Supriya Rajgopal May 4 '18 at 5:38
  • As I displayed, indeed, I'd like to give a name only to book pages which are chapters. IIUYC, the book module isn't what I'm looking for as it's "named pages" are chapter pages and I'd better off use only Views. – user16289 May 4 '18 at 5:52
3
+100

On Drupal, the node title is always required. On books, the title is even more important, since it is used for the links to the other pages of the book, shown after the page content.

screenshot

I took the screenshot on Drupal 7, but the same is true for Drupal 8.

The only way to avoid entering a title would be having a module that automatically adds a title to nodes, like the Automatic Nodetitles module, or the Automatic Entity Label (which has a version for Drupal 7 and Drupal 8).

Automatic Nodetitles is a small and efficient module that allows hiding of the content title field in the form. To prevent empty content title fields one can configure it to generate the title by a given pattern.

"Automatic Entity Label" is a small and efficient module that allows hiding of entity label fields. To prevent empty labels it can be configured to generate the label automatically by a given pattern.

| improve this answer | |
  • I'm surprised to know that developers expected that users will manually number their books because that should be an overkill to manually paging large books (say >50 pages) without some automation, won't you agree? – user16289 Apr 30 '18 at 3:13
  • It's a title like for other content types, not numbering a book page. If you need to give a title that follows a pattern, there are the modules I linked. Drupal core is not supposed to implement a functionality that is not used from all the users running a Drupal site, and using titles like Page 1, Page 2 is not pretty common. – kiamlaluno Apr 30 '18 at 6:35
  • Yes I actually did desire to create a book of something like 200 pages as a Drupal site but I find this desire a bit unrealistic for Drupal 8.5.x if I desire an all core site. – user16289 Apr 30 '18 at 7:31
  • 6
    The Drupal concept of a book is not a mirror of a physical book, where a page represents a single piece of paper. it's intended to give online content a book-like structure, where each item represents a logical section with its own title. This is best suited to non-fiction material. – Alfred Armstrong Apr 30 '18 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy