Difference between revisions of "How can I embed YouTube videos on JReviews listings"
From JReviews Documentation
Line 1: | Line 1: | ||
Create a new text custom field that will be used to enter YouTube video IDs. | Create a new text custom field that will be used to enter YouTube video IDs. | ||
− | + | At the bottom off the Field page find Advanced Options and replace the '''Output Format''' with this: | |
− | + | ||
− | + | ||
<source lang="php"> | <source lang="php"> |
Revision as of 11:11, 23 August 2011
Create a new text custom field that will be used to enter YouTube video IDs.
At the bottom off the Field page find Advanced Options and replace the Output Format with this:
<iframe class="youtube-player" type="text/html" width="420" height="265" src="http://www.youtube.com/embed/{FIELDTEXT}" frameborder="0"></iframe>
In the description box you can enter instructions as tooltip to explain users they need to paste YouTube video IDs, not complete video URL, for example:
http://www.youtube.com/watch?v=lKbEI8pDz0A
The bold part of the URL needs to be entered as the field value when the listing is submitted.