We have created a way to insert YouTube videos into our site using the Ingeniux CMS. Here’s a preview of a video running in our new college template:
This was quite a nut to crack, but after numerous hours and a large order from Starbucks, we completed the process. The problem existed in the fact that the url of the video was what we wanted, but the embed code provided by YouTube wouldn’t work. Insert this code into your page schema to create a YouTube video component. (Note that we have autoplay set to true, so the movie will play when the page loads).
<xsl:variable name=”video” select=”/*/Page[@Name='Video']/@URL”/>
<xsl:variable name=”videourl” select=”substring-after($video,’=')”/>
<xsl:if test=”/*/Page[@Name='Video']“>
<object width=”425″ height=”355″>
<param name=”movie” value=”http://www.youtube.com/v/{$videourl}&hl=en”></param>
<param name=”wmode” value=”transparent” ></param>
<embed src=”http://www.youtube.com/v/{$videourl}&autoplay=1″ type=”application/x-shockwave-flash” wmode=”transparent” width=”425″ height=”355″ />
</object>
</xsl:if>
<xsl:if test=”/*/Navigation[@Name = 'VideoPageNavigation']“>
<!– Goes to template match in include-navigations –>
<xsl:apply-templates select=”/*/Navigation[@Name = 'VideoPageNavigation']” />
</xsl:if>
To create the link for the video, set up the page (on the Edit tab) like the following example:

