I<
Нужно у материала текст в кнопке менять, основываясь на его категории (к какому термину принадлежит).
{{ node.field_name.string }}Size: a a a
I<
{{ node.field_name.string }}AU
{{ node.field_name.string }}AU
I<
AU
I<
{% set button_text = 'Default' %}
{% for category in node.categories if category.target_id == 123 %}
{% set button_text = 'New text' %}
{% endfor %}AU
{% set button_text = 'Default' %}
{% for category in node.categories if category.target_id == 123 %}
{% set button_text = 'New text' %}
{% endfor %}ИЛ
DL
AP
VP
AP
M
И
И
P
AI