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.

General

Iframe for video link saved as a entry

Started by Tor Mentor 3 years ago · 1 replies · 330 views
3 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.

3 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 Jerry Hunt, 4 days ago
2 99 16 hours ago
General · by pamtbaau, 21 hours ago
1 63 21 hours ago
General · by Andy Miller, 1 day ago
0 48 1 day ago
General · by Marcel, 12 months ago
6 357 5 days ago
General · by Duc , 6 days ago
3 45 6 days ago