2011-12-04, 00:09:29
Draxeiro Wrote:Since pasting the code directly into the page doesn't work, I've installed Dynpages, created a component containing the code for the video and included that into the page. Obviously works but a bit difficult to explain to the customer.
Is there an easier way?
You could use one component named youtube with parameters, e.g.
Code:
<?php global $args; ?>
<iframe width="560" height="315" src="http://www.youtube.com/embed/<?php echo $args[0]; ?>" frameborder="0" allowfullscreen></iframe>
Code:
{% youtube pJe_1WL5p_Q %}