Would you like to give your editors the possibility to add Youtube videos to your RedDot CMS project?
But you don’t want them to be able to edit the HTML directly to enter the iframe tag that youtube provides and you don’t just want to add a link to the youtube URL because that would drive content from your site to youtube and the marketing department definitely wants visitors to stay on your site, right? Right.
Well, use this template, inspired by Kim Dezen to embed yutube videos by just entering the URL. The ASP code strips out everything but the video-ID and embeds the content into your project page without editors touching the HTML.
<%stf_youTubeURL%> – Holds the complete URL to the youtube video.
This part removes the URL and returns just the youtube video id used for the embedded object tag.
<% youTubeID = Mid("<%stf_youTubeURL%>", InStrRev("<%stf_youTubeURL%>", "?")+3) %>
YouTube video template for RedDot CMS by Kim Dezen is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License.
Based on a work at www.reddotcmsblog.com.
No related posts.