Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Video Gallery / Video Portfolio

Started by manjaroda 9 years ago · 3 replies · 1061 views
9 years ago

Is there a way of creating a portfolio or gallery with videos hosted on youtube in grav

9 years ago

The short answer is yes 🙂

Really all you need to do is have a page with some frontmatter that contain an array of videos you want in your portfolio/gallery, then in your twig that renders the page, iterate over the array and display the videos with the appropriate tags. It really couldn't be simpler.

👍 1
9 years ago

What is the tag for adding a youtube video or video embed to front matter?,

title: Portfolio
menu: portfolio
portfolios:

YAML
    title: Dreams
    subtitle: 'Website Design'
    layout: default
    modalid: 1
    date: 1405641600
    img: dreams.png
    thumbnail: dreams-thumbnail.png
    alt: image-alt
    projectdate: 'April 2014'
    client: 'Start Bootstrap'
    category: 'Web Development'
    description: 'Lorem ipsum dolor sit amet, usu cu alterum nominavi lobortis. At duo novum diceret. Tantas apeirian vix et, usu sanctus postulant inciderint ut, populo diceret necessitatibus in vim. Cu eum dicam feugiat noluisse.'
-
9 years ago

Not really following you. if you have a video file in your frontmatter, then just putting:

TXT
![](yourvideo.mp4)

Would be enough to render a simple <video> tag

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago