Link to Youtube video - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Link to Youtube video

  • Link to Youtube video
  • 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)
  • 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!