Repository navigation
Image are not shown? #11609
Answered
by
marcorieser
Magnusvb
asked this question in
Troubleshooting
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... :( |
Answered by
marcorieser
Mar 21, 2025
Replies: 3 comments 2 replies
|
Have you set {{ blog_image }}
<img src="{{ url }}" alt="{{ alt }}" />
{{ /blog_image }} |
2 replies
Answer selected by
Magnusvb
|
Answer: These changes, The GitHub working in GitHub Actions, Reset to make changes. |
0 replies
|
Docs: (https://statamic.dev/fieldtypes/assets#data-structure) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 }}