Posted on October 14, 2014 by Neil Jennings
One question we’ve always get asked by clients is “How can I add a video to my CMS website ?”.
This can be done by copying and pasting the embed code. However this has caused many issues with clients pasting the code in the wrong section, breaking HMTL markup validity or even messing up the page layout.
I decided to look at how we could bypass the whole issue of adding HTML and I came up with a simple search system.
Anyone using the system now just has to type the title of the video they wish to add and the system will generate the HTML in the background and insert it to the webpage. All results are generated by YouTube’s search system.
Once the video has been found a preview will be displayed just so the user can confirm if they have selected the right video.