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.
Many thanks for the reply.
And yes, regarding Vimeo I meat the link, not the file.
I’m trying to implement the structure field, but I’m not sure I can make it work as I thought.
Maybe with the link embed I cannot do what I need?
For me is also an option to upload the video file directly.
I try to reframe the question:
I need to mix images and videos in one gallery.
What I don’t understand is: how, in the loop I posted previously, can I return images and videos?
I know I can call the video files with $page->videos(), but I somehow cannot call both in the same loop?
I’m trying to develop a solution that allows me to sometimes only have images, sometimes only videos, sometimes both.
Is the video actually copied to the media folder (Kirby copies all files from the content folder to the media folder)? An is the resulting video intact? Are you testing this locally or on a remote server?
You might want to prevent this if you have problems with copying huge files on shared hosting (as explained in the thread you linked to).