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.
Would be fab if an option existed to include teasers in the listing of child book pages on a parent book page, instead of just the titles of the child book pages, akin to Category or Node Relativity.
Comments
Comment #1
Jody LynnI don't think most people want this feature, and it can be done with views.
Comment #2
MC_McMic CreditAttribution: MC_McMic commentedI disagree with the first part of this statement. I have been wondering myself why this option doesn't exist by default. It seems very sensible to me.
Comment #3
iantresman CreditAttribution: iantresman commentedI think it would make a great option, see my post "Book: Optional display teaser with node titles". A book's table of content often shows a summary of the section in addition to its title. Ideally one should be able to choose to display:
See also (similar requests):
Comment #4
aaronpinero CreditAttribution: aaronpinero commentedI disagree with both the idea that most people don't want this and that it can be done with Views. Certainly, you could create a view that will show book pages with teasers, but you will lose other helpful features of book pages, such as the book-specific navigation, the display of the book menu block, etc. A separate thread indicated that it might be possible to do this by customizing the theming of menu items in this case (since the list of child pages is themed as a menu) but there was very little additional information. I'd be happy to figure this out myself but the documentation/examples for theme() and/or hook_theme() are really confusing.
My specific case involves attempting to show custom fields of a content type that is being used as a book page. I'd like to do this without having to hack the Book module directly.
Comment #5
sara78 CreditAttribution: sara78 commentedHi to all
I see that lot of people have been asking for this feature.
I think we all know this can be done with views, but in my case I do not think views would be useful for me: my client will update and add books after the release of the site, and I cannot ask him to create a new view every time he creates a new book, it would be impossible to him.
So is there any way to have teasers along with titles? How can I have the same feature with views so that when a new book is created also a relative view is automatically created and the book even automatically links to it? I'm afraid it's not possible, is it?
thanks,
Sara
Comment #6
c0ldfury CreditAttribution: c0ldfury commented> I don't think most people want this feature, and it can be done with views.
What a crappy attitude. A trivial simple google search shows that many want this feature, it's difficult to implement in a module, and ruins book navigation when done in views.
Comment #7
Azavia CreditAttribution: Azavia commentedI am interested in this also.
Comment #8
dmetzcher CreditAttribution: dmetzcher commentedI'd love to have this feature, even as a separate module that simply turns it on or off. The Summary field of a child page could be used as the description of the child link on the parent page.
Comment #9
scottholmes CreditAttribution: scottholmes commentedI've just started looking into creating this type of feature for my books tables of contents, but rather than using a teaser from the body I have a text field I'd like to have displayed. I called this field "summary" as it stands for a summary of the particular chapter (node).
Comment #10
lolandese CreditAttribution: lolandese commentedD8 but still related.