Sign up |
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.