Hello everyone.
I need help with subject, how to make page with all content associated with category.
Who knows in drupal it looks like a list on page mysite.com/taxonomy/term/
Thanks
{% if record.taxonomy is defined %}
{% for type, values in record.taxonomy %}
<em>{{ type }}:</em>
{% for link, value in values %}
<a href="{{ link }}">{{ value }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
{% if not loop.last %} - {% endif %}
{% endfor %}
{% endif %}
contacts:
name: Contacts
slug: contacts
singular_name: Contacts
singular_slug: contacts
behaves_like: categories
multiple: false
options: [ Компания, Сеть магазинов, Филиалы ]
listing_template: contacts-list.twig
{% if record.taxonomy is defined %}
{% for type, values in record.taxonomy %}
<em>{{ type }}:</em>
{% for link, value in values %}
<a href="{{ link }}">{{ value }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
{% if not loop.last %} - {% endif %}
{% endfor %}
{% endif %}
name: Contacts
slug: contacts
singular_name: Contact
singular_slug: contact
Users browsing this forum: No registered users and 2 guests