I’m running into a really weird behaviour and could use a second pair of eyes.
Within a page I’m looping through different sections using kind of the same snippet:
<?php foreach($data->additionalbox()->toStructure() as $slide): ?>
<?php // dump($slide) /* did this and shows all data as supposed */ ?>
<?php if($slide->img()->isNotEmpty() && $img = $data->file($slide->img())) echo $img->url() ?>
<?php endforeach ?>
This outputs everything but the images url on the third slider though they are shown when I do a dump. The images are all svg btw. Now, the same code does output before and afterwards other images, jpgs and svg’s alike. I’m simply at loss what to look for anymore. I would gladly welcome any ideas…