- π«π·France Grimreaper France π«π·
On my website, I currently only override the book-navigation.
https://florent-torregrosa.fr/book/handbook/composer
I use the https://getbootstrap.com/docs/3.3/components/#pagination-pager component which no more exist in Bootstrap 5. So I would say let's use the https://getbootstrap.com/docs/5.2/components/pagination/#alignment component centered.
book-navigation.html.twig:
{% if tree or has_links %} <nav role="navigation" aria-labelledby="book-label-{{ book_id }}"> {{ tree }} {% if has_links %} <h4 id="book-label-{{ book_id }}" class="visually-hidden">{{ 'Book traversal links for'|t }} {{ book_title }}</h4> <ul class="pager"> {% if prev_url %} <li class="previous"> <a href="{{ prev_url }}" rel="prev" title="{{ 'Go to previous page'|t }}"><b>{{ 'βΉ'|t }}</b> {{ prev_title }}</a> </li> {% endif %} {% if parent_url %} <li> <a href="{{ parent_url }}" title="{{ 'Go to parent page'|t }}">{{ 'Up'|t }}</a> </li> {% endif %} {% if next_url %} <li class="next"> <a href="{{ next_url }}" rel="next" title="{{ 'Go to next page'|t }}">{{ next_title }} <b>{{ 'βΊ'|t }}</b></a> </li> {% endif %} </ul> {% endif %} </nav> {% endif %}
Maybe other Twig templates of the Book module will have to be overridden too.
- @mademo opened merge request.
- Assigned to mapac
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:56pm 14 June 2023 - Assigned to Grimreaper
-
Grimreaper β
committed 3ddf0880 on 5.0.x authored by
mademo β
Issue #3346448 by mademo, Grimreaper: Book support
-
Grimreaper β
committed 3ddf0880 on 5.0.x authored by
mademo β
- Issue was unassigned.
- Status changed to Fixed
over 1 year ago 8:19am 15 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.