Render category tree on category pages

This commit is contained in:
2026-01-26 08:58:16 +01:00
parent 782a364612
commit ca42b801aa
4 changed files with 10 additions and 9 deletions

View File

@@ -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 %}

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="en" data-bs-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">