On Drupal 10, I have copied and modified the book-navigation.html.twig file to my custom subtheme "templates" folder (/themes/custom/my_subtheme/templates/book-navigation.html.twig).
This book navigation is perfectly displayed at the bottom of my book pages when logged as admin (the template file seems to be appended just after the "content" part of the node). But when I check my website as an anonymous user, nothing is even printed in the source code.
What I have tried so far :
- Clear cache
- List item
- Rebuild permissions Changed template file permissions from 644 to 664
- Checked that the content types used for the book are visible to anonymous users
Does this have something to do with the template_preprocess_book_navigation() function which should also be mentionned in my subtheme?
Thank you by advance for your help! Clément