Image are not shown? #11609
-
|
Going through the quick start and have added a field for a blog image. The show template have this code: But checking the final HTML all I got is an empty img-tag. Like this: I feel stupid - but was is wrong... :( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Have you set {{ blog_image }}
<img src="{{ url }}" alt="{{ alt }}" />
{{ /blog_image }} |
Beta Was this translation helpful? Give feedback.
-
|
Answer: These changes, The GitHub working in GitHub Actions, Reset to make changes. |
Beta Was this translation helpful? Give feedback.
-
|
Docs: (https://statamic.dev/fieldtypes/assets#data-structure) |
Beta Was this translation helpful? Give feedback.
Have you set
max_itemsto1on theblog_imagefield? Otherwise,blog_imageaugments to a collection of images and you need to loop it like this:{{ blog_image }} <img src="{{ url }}" alt="{{ alt }}" /> {{ /blog_image }}