Render category tree on category pages
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{% extends "template.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
{#{% cache 'list_' ~ listType %}#}
|
||||
{% cache 'list_' ~ listType %}
|
||||
|
||||
{% if listType starts with 'category_' %}
|
||||
{{ renderCategoryTree(categoryTree) | raw }}
|
||||
{{ renderCategoryTree(categoryTree, category) | raw }}
|
||||
{% endif %}
|
||||
|
||||
<div class="table-responsive">
|
||||
@@ -71,5 +71,5 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{#{% endcache %}#}
|
||||
{% endcache %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user