2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 3, 2016   (RSS)


To add YouTube videos, use the Embed option under the YouTube video. Click Share and then choose the Embed link. You will get code like this:

<iframe width="640" height="360" src="https://www.youtube.com/embed/a4d5CbK0b3A" frameborder="0" allowfullscreen></iframe>

Copy this code and add it into CMS Builder. 

Using the WYSIWYG editor (rich text editor) in CMS Builder, click Insert/Edit Embedded Media button (looks like a film strip). Click on the Source tab and paste the YouTube embed video code. 

This will save the video into your content.

If you want to control where the user inserts video on the site, the create a new text field (called Youtube video, for example) and paste the embed code into the text field.

On the frontend of the site, here is an example of the PHP code that would output the video where you want it:

<?php echo $newsRecord['youtuebe_video']; ?>

Let me know if you have any other questions about this.

Damon Edis

Hire me! Save time by getting our experts to help with your project.