- Issue created by @jimmb
- πΊπΈUnited States jimmb
Okay, I think I've figured out most of this now .... Here is what I *think* to be correct info. for my questions above:
* It appears the files at "/web/modules/contrib/book/templates" and "/web/modules/contrib/book/css" are in place for the Drupal 11 version of this module. However, they do not apply to the Drupal 10 version.
* For Drupal 10, the traversal links are by default coming from /web/core/themes/stable9/templates/navigation/ --> "book-navigation.html.twig" and "book-tree.html.twig"
* The reason why these are found in "stable9" within core > themes is that my theme (DXPR) uses bootstrap5 as its base theme, and Bootstrap5 uses stable9 as its base. So DXPR gets the stable9 inheritance.
* In order to get these twig files into a place where you can edit them without touching anything in core, a sub-theme needs to be created. Note that DXPR has a nice feature where you can add custom sitewide CSS in the theme settings, allowing you to avoid the additional complexity of a subtheme. Because of this, I did not have a sub-theme in place beforehand.
* After a subtheme is created and set as default, it's a matter of copying the relevant twig files at /web/core/themes/stable9/templates/navigation/ to /web/themes/custom/my_dxpr_theme/templates/navigation
* Now you can make changes as desired in these twig files to get the traversal links looking decent for a normal public-facing website. It's also recommended to add some CSS classes in these twig files, so that you can style them further as needed.
So these are the answers and process I used, and things seem to have worked out nicely with this approach. If I'm making any mistakes here or posting incorrect info., I hope one of the module maintainers will comment ...
Otherwise, I think the issue can be closed and hopefully this will help someone else sometime.