Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Iframe for video link saved as a entry

Started by Tor Mentor 4 years ago · 1 replies · 761 views
4 years ago

Hello, I am new to Grav and I was looking at the content option in the backend and what I miss is the ability to place a iframelink that is not in the content section but kust underneath the title. I have a template that uses images and/or a videolink above the content and not inside the content. but I want the ability to save it as a post with that iframelink. I hope I have made myself clear on explaining this, but just like the image separated from the content I would like to see the same for a iframe link and not alter it in the html file itself.

4 years ago

I embed some videos as iframes in my articles. I define the YouTube Video ID in the frontmatter of the article and I check if page.header.youtube is set within the template and if so, I embed the video.

I hope it helps.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago