Skip to content

Tags documentation very light #2339

Description

@jannekalliola

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions