jan-vince / smallrecords

OctoberCMS plugin to store and manage records and lists
MIT License
30 stars 11 forks source link

Twig output Record detail tags #96

Closed andreasdueren closed 2 years ago

andreasdueren commented 2 years ago

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.

jan-vince commented 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.

andreasdueren commented 2 years ago

Thank you!