Describe the bug
I have the following configuration:
taxonomies:
tags: tag
categories: category
series: serie
I have template for categories in layouts/taxonomy/categories.html.twig.
Then I have in a blog post defined the following:
---
...
categories: ["Data Sovereignty"]
---
And in template I create links to the category as follows:
{% if page.series is defined %}
<p>Blog post series:
{% for ser in page.series %}
<strong><a href="{{ url('series/' ~ ser) }}">{{ser}}</a></strong>{{ not loop.last ? ',' }}
{% endfor %}
{% endif %}
This creates a link http://localhost:8000/categories/data-sovereignty/ that does not execute the aforementioned template, but a generic page template. If I use link http://localhost:8000/categories/, it uses the category template, but I have no clue what data does it have an access to.
I've read the documentation several times and found these settings from there, but I cannot get categories to work properly.
It would be awesome to get some guidance to move forward and expand the documentation to make using taxonomies easier.
To reproduce
No response
Expected behavior
I would like to see the pages in the given category listed.
Version
8.88.0
Operating System
No response
Relevant log output
Describe the bug
I have the following configuration:
I have template for categories in layouts/taxonomy/categories.html.twig.
Then I have in a blog post defined the following:
And in template I create links to the category as follows:
{% if page.series is defined %} <p>Blog post series: {% for ser in page.series %} <strong><a href="{{ url('series/' ~ ser) }}">{{ser}}</a></strong>{{ not loop.last ? ',' }} {% endfor %} {% endif %}This creates a link http://localhost:8000/categories/data-sovereignty/ that does not execute the aforementioned template, but a generic page template. If I use link http://localhost:8000/categories/, it uses the category template, but I have no clue what data does it have an access to.
I've read the documentation several times and found these settings from there, but I cannot get categories to work properly.
It would be awesome to get some guidance to move forward and expand the documentation to make using taxonomies easier.
To reproduce
No response
Expected behavior
I would like to see the pages in the given category listed.
Version
8.88.0
Operating System
No response
Relevant log output