Use breadcrumbs to display categories

This commit is contained in:
Krzysztof Płaczek
2024-11-28 11:51:14 +01:00
parent bd62a23854
commit d9740a86d0
2 changed files with 7 additions and 6 deletions

View File

@@ -11,11 +11,13 @@
<span class="badge text-bg-light">{{ product.subTitle }}</span>
</td>
<td>
<ul class='nav'>
{% for category in product.categories %}
<li class="nav-item"><a class="nav-link" href="{{ path('app_category', {'category': category}) }}"> {{ category }} </a></li>
{% endfor %}
</ul>
<nav aria-label="breadcrumb" style="--bs-breadcrumb-divider: '>';" >
<ol class="breadcrumb">
{% for category in product.categories %}
<li class="breadcrumb-item" aria-current="page"><a class="breadcrumb-item text-decoration-none" href="{{ path('app_category', {'category': category}) }}">{{ category }}</a></li></li>
{% endfor %}
</ol>
</nav>
</td>
<td><a href='https://pl.ryobitools.eu/{{ product.url }}'>link</a></td>
</tr>