@timoetting s K3 Page Builder is fantastic! I’m creating some different Block-Types, e.g. an image gallery.
But i can’t manage to display all selected files (images) with accessing them as files (in order to use the alt and caption text from the file).
The only way i could display the images yet is:
<?php foreach($data->bilder()->yaml() as $bild): ?> <div> <?php if($full = $bild['url']): ?> <a class="uk-inline" href="<?php echo $full ?>" alt="Alt" data-caption="Caption 1"> <img src="<?php echo $full ?>"> </a> <?php endif ?> </div> <?php endforeach ?>
But this way i cant access the files-meta infos and i cannot even crop them