data-videolink

Feb 2, 2015 at 1:58 PM
Can anyone help me understand why the YouTube module isn;t working for me?

I am developing my site locally using VS2013, and the template is as follows:
<link rel="stylesheet" type="text/css" href="[Portal:HomeDirectory]2sexy/GettingStarted/assets/styles.css" data-enableoptimizations="true" />
<script type="text/javascript" src="[Portal:HomeDirectory]2sexy/GettingStarted/assets/scripts.js" data-enableoptimizations="true" />

<div class="co-video co-video-youtube sc-element">
    [Content:Toolbar]
    <[Presentation:Heading] class="[Presentation:HeadingStyle]">
        [Content:Title]
    </[Presentation:Heading]>
        [Content:Content]
        <div class="co-video-wrapper" data-videolink="[Content:VideoLink]">
        </div>
</div>
I can see text entered, and I can see the HTML is being generated, but I must be missing something that makes this video-datalink work (I can't find any info on video-datalink anywhere)..

Thanks
Feb 3, 2015 at 2:55 PM
i believe you're using a very old template (or we forgot to update something) because you still have the term 2sexy in your js-paths, while today everything runs in 2sxc. So your main problem is that the JS isn't being loaded, but also that the template is probably old.

Please download the newest standard templates and there you should have a properly working example.
Best,Daniel