Selecting Image with selectbox field in the panel

First project with kurby - so please be gentle.

I am trying to call the source from an image which i set in the blueprints (“iratap”) with an selectboxfield.

<img class="img-responsive" src="<?php echo $data->url(), "/", $data->iratap()?>" alt="<? echo $data->teamp()?>">

Is there an easier way to do this? I need tho change this, because I want to create a thumb for this files.

Thanks for the help.

Is there a reason you do not want to use $page->image()->url()?

1 Like

I try to create a One-Pager and followed this solution to load all snipptes on the home.php file.

Your code is not working for me - the code creates a empty



Sorry - works great. Just deleted the last ` from your post.

Thanks a lot!

Ah sorry, about that. Just realized it. Removed it from my post to prevent problems for future readers of this post.