Seit Contao 5.7 stehe ich auf dem Schlauch was das Überschreiben des pagination templates angeht.
Bisher hatte ich /templates/themeordner/pagination.html5
Dieses greift nur im Debug Modus.
Dann habe ich versucht ein twig Template zu erstellen und es komplett überschrieben:
/templates/themeordner/pagination.html.twig
Das greift leider auch nicht. Daraufhin habe ich das alte html5 template gelöscht, was leider auch keine Änderung brachte.
Das Template Studio hat die Reihenfolge eigentlich richtig angezeigt, wie in der Doku beschrieben.
Mache ich hier einen Fehler, oder bin ich auf einen Bug gestoßen?
Hier der Code meines custom twig templates:
Danke, mit Twig bin ich leider noch eher per "Sie".Code:{% trans_default_domain 'contao_default' %} <!-- indexer::stop --> <nav class="pagination my-5 w-100 block" aria-label="{{ 'MSC.pagination'|trans }}"> <p>{{ total }}</p> <ul class="d-flex p-0 w-100 align-items-center justify-content-center"> {% if hasFirst %} <li class="first"><a href="{{ first.href }}" class="first" title="{{ first.title }}">{{ first.link }}</a></li> {% endif %} {% if hasPrevious %} <li class="previous"><a href="{{ previous.href }}" class="previous" title="{{ previous.title }}">{{ previous.link }}</a></li> {% endif %} {% for page in pages %} {% if page.href is null %} <li><strong class="active">{{ page.page }}</strong></li> {% else %} <li><a href="{{ page.href }}" class="link" title="{{ page.title }}">{{ page.page }}</a></li> {% endif %} {% endfor %} {% if hasNext %} <li class="next"><a href="{{ next.href }}" class="next" title="{{ next.title }}">{{ next.link }}</a></li> {% endif %} {% if hasLast %} <li class="last"><a href="{{ last.href }}" class="last" title="{{ last.title }}">{{ last.link }}</a></li> {% endif %} </ul> </nav> <!-- indexer::continue -->![]()


Zitieren
