Dear Kirby community,
I’m building a simple portfolio that has a home page with a list of all the projects + a page for each project.
On the project page I have a gallery of images that works well, but I would like to also add some videos using the video() function to embed links from Vimeo.
I’ve been browsing the forum and the documentation but I cannot understand how to do it.
Ideally I could see the video among the other images in the blueprint and be able to change the order as I like.
This is my code:
<section class="project__gallery">
<?php foreach ($page->images()->sortBy('sort', 'asc') as $image): ?>
<figure class="project__item <?= $image->class() ?>">
<img src="<?= $image->url() ?>" alt="<?= $image->alt() ?>">
<figcaption>
<?php if ($image->caption()->isNotEmpty()): ?>
<span class="project__itemCaption"><?= $image->caption() ?></span>
<?php endif ?>
<?php if ($image->photographer()->isNotEmpty()): ?>
<span class="project_itemCredits">(© <?= $image->photographer() ?>)</span>
<?php endif ?>
</figcaption>
</figure>
<?php endforeach ?>
</section>
Any tips or link to the right part of the documentation?
Many, many thanks!
A