!143 #1011 Ad post preview page (check category from controller)

This commit is contained in:
Diatrex 2020-03-23 15:13:53 +03:00
parent 0f8d4b9781
commit b63a9f56ca
2 changed files with 2 additions and 7 deletions

View File

@ -12,7 +12,7 @@
</a>
</li>
{{ addBlock('ads-list/partials/breadcrumb',{'mainCats':mainCats})|raw }}
{{ addBlock('ads-list/partials/breadcrumb',{'mainCats': mainCats, 'category': categoryId})|raw }}
</ol>
</nav>

View File

@ -1,9 +1,4 @@
{% set catSlug = null %}
{% set pathInfo = app.request.pathinfo|split('/') %}
{% if pathInfo[1] == 'c' %}
{% set catSlug = pathInfo[2] %}
{% endif %}
{% if catSlug %}
{% if params.category %}
{% for category_breadcrumbs in params.mainCats %}
<li class="breadcrumb-item">
<a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs['id']]) }}"