Hi everyone,
I have a $site structure field for supporters. Each structure item has a title, url and an image (.svg)
I want to print out a link to the supporter with an inline .svg logo
I don’t understand how to pass structure image url into the svg()
helper, all variants I tried didn’t work. I’m kinda lost here
<?php foreach ($site->supporters()->toStructure() as $supporter): ?>
<a href="<?= $supporter->url() ?>" target="_blank">
<?= svg( $supporter->image()->toFile()->url() ) ?>
</a>
<?php endforeach; ?>