// you’re reading...

CMS

Creating a Youtube video template for RedDot CMS


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.

Explanation
<%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)
%>

Get the code

Donate a dollar or $2 and then download the template here. The code is a plain text file for you to copy and paste, you still have to create the element(s) yourself and do some thinking around this.

Licensing

Creative Commons License
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.

Share and Enjoy:
  • Print
  • email
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • MisterWong
  • Facebook
  • LinkedIn

No related posts.

About the author:

Markus Giesen Markus Giesen is a Solutions Architect and RedDot CMS Consultant, formerly based in Germany. Travelling around the world to find and offer solutions for a better world (in a very web based meaning). He just found a way to do this as part of a Melbourne based online consultant house. On this blog Markus shares his personal (not his employers) thoughts and opinions on CMS and web development. In his spare time you will find him reading, snowboarding or travelling. Also, you should follow him on Twitter!

Discussion

2 comments for “Creating a Youtube video template for RedDot CMS”

  1. Can a similar trick be used to embed a Zoho Creator form? If so, how?

    Posted by Helen | August 9, 2010, 7:11 pm
  2. Hey Helen, yes and no. Not out of the, no, the template is specifically for youtube videos. But yes, you could easily build a Open Text CMS template with a text element which has the following attributes: ASCII, Do not convert characters to HTML. – You should be able to place this template in your page code and then allow editors to paste their Zoho Form Code snippet into this element to include the zoho form on the site.

    Posted by Markus Giesen | August 10, 2010, 3:47 am

Post a comment



Stay up to date! - Get notified about followup comments

If you don't feel the urge to comment but wish to stay in the loop:
Just enter your email and subscribe to new comments.

Subscribe without commenting

Recent Tweets

  • RT @AirKraft: Transport Canada breakout: they manage 80K pages and 300K assets with WSM(RedDot). Wow! #OTCW 2010-11-11
  • The RedDot usergroup session 'Future of WCM' is in National Harbor 7, now. See you there! #otcw 2010-11-11
  • RT @yttergren: @AirKraft: Calling all WSM(RedDot) devs: share your solutions on http://bit.ly/bgPIof EVERY solution can win an iPad #OTCW 2010-11-10
  • Come to the Solution Exchange session. Enhance your (#reddot) CMS project! Chesapeake 12, 3:20pm #otcw Looking forward to see you there! 2010-11-10
  • More updates...