Hi there,
I’m trying to create a custom block preview (for an image block).
The {{ content.image[0].url }}
is correct, but whenever I try to use this code in an <img src="" />
tag, it doesn’t work.
How do I put the image url in my img tag?
Hi there,
I’m trying to create a custom block preview (for an image block).
The {{ content.image[0].url }}
is correct, but whenever I try to use this code in an <img src="" />
tag, it doesn’t work.
How do I put the image url in my img tag?
Found my solution here: Block factory: Creating your own blocks collection | Kirby CMS