Closed andreasdueren closed 2 years ago
Hi Andreas,
{{ recordDetail.tags }} returns collection so you have tu iterate:
{% for tag in recordDetail.tags %}
{{ tag.name }}
{% endfor %}
25. 2. 2022 v 2:32, Andreas Düren @.***>:
I'm trying to print the tags assigned to a record. Just like I'm printing the category with {{ recordDetail.category.name}}. {{ recordDetail.tags }} doesn't work. Any Idea what I'm doing wrong? I'm a total symfony beginner.
— Reply to this email directly, view it on GitHub https://github.com/jan-vince/smallrecords/issues/96, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAINT76GGV75BQG7XIALS4LU43LZBANCNFSM5PI7AVSA. You are receiving this because you are subscribed to this thread.
Thank you!
I'm trying to print the tags assigned to a record. Just like I'm printing the category with {{ recordDetail.category.name}}. {{ recordDetail.tags }} doesn't work. Any Idea what I'm doing wrong? I'm a total symfony beginner.