Hi all -
I’m retreiving an image from a structured field but not sure how to retrieve the url for it correctly so that it’s relative to both the content level (subpage of 'courses;) and works running on my local via the 8888 port on my local. I’ve been using the site url config value until now but not sure how to do it via the yaml method (open to other ways of course too). Any help appreciated
<?php $poi = $page->poi()->yaml();
foreach($poi as $poi): ?>
<div class="row poi">
<div class="col-lg-4">
<img src="<?php echo $poi['poi_image'] ?>">
</div>
<div class="col-lg-8">
<h4><?php echo $poi['poi_name'] ?></h4>
<p><?php echo $poi['poi_description'] ?></p>
</div>
</div>
<?php endforeach ?>