- Issue created by @David Urban
My project uses private file system over S3FS. When rendering images in twig template like:
<img src="{{ file_url(node.field_photos.0.entity.uri.value) }}">
The image is not displayed, instead I see little icon of file with red "x".
I have also tried regular {{ content.field_photos }} and {{ node.field_photos }}
with the same result.
The above code works well in other templates, like node etc.
1. Install S3FS, configure activate private file system
2. Configure View Mode pro a node
3. Create View Mode template and add code to display images
4. You get error icon instead of an image
I'd very much appreciate you help :).
Active
2.1
Code