More in this section
Forums / Module Builder / Link to Youtube video

Link to Youtube video

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Philip
    Philip avatar
    4 posts
    31 Mar 2014
    25 Mar 2015
    Link to this post

    Using module builder I have created a content type "Related media (images, videos, files)" and chosen "video selector". However, when I go to Content, and select the module I created, there does not seem to be an option for a video link (e.g. Youtube) to be inserted, the video selector widget available for custom modules (as opposed to when in 'Pages") does not allow for a link to be used - it expects the video to be uploaded.

    My requirement is for a custom module that allows for a Youtube to be allowed for the video content type.

     Any help greatly appreciated.

    Related media (images, videos, files)
    Related media (images, videos, files)
  2. Stu
    Stu avatar
    3 posts
    08 May 2014
    01 Apr 2015 in reply to Philip
    Link to this post

    Hey Philip,

    From everything I've seen the related media type for video is only going to pull in for Sitefinitys video player. Although I know the video widget can handle YouTube videos you can't get one into the library (at least not without customization).

    You could handle this pretty easy though by either:

    1) Create a new short text field in your module where someone can just paste the entire embed/iframe code and then pull that into the widget template.

    2) Create your own dynamic module for YouTube videos which would be set up the same way as above just in a separate module, then pull that in via related data. 

    You could also have the iframe code set up in your widget, so the only thing a content editor would need to add in is the video code itself.

    <iframe width="560" height="315" src="<%# Eval('YourShortTextField') %>" frameborder="0" allowfullscreen></i


    Hope that helps!

2 posts, 0 answered