Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Iframe for video link saved as a entry

Started by Tor Mentor 4 years ago · 1 replies · 635 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 Andy Miller, 1 week ago
0 133 1 week ago
General · by lynbor, 1 month ago
3 451 2 weeks ago
General · by lynbor, 3 weeks ago
7 584 2 weeks ago
General · by Harry, 2 weeks ago
0 172 2 weeks ago
General · by Old Man Umby, 1 month ago
2 314 4 weeks ago