Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Youtube video's
#3
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>
and tell the customer just to include the component call with the youtube ID on the page, e.g.:
Code:
{% youtube pJe_1WL5p_Q %}
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Adding Youtube video's - by Draxeiro - 2011-12-03, 23:32:18
Adding Youtube video's - by Connie - 2011-12-03, 23:58:08
Adding Youtube video's - by mvlcek - 2011-12-04, 00:09:29
Adding Youtube video's - by Connie - 2011-12-04, 01:00:54
Adding Youtube video's - by Draxeiro - 2011-12-04, 01:02:30
Adding Youtube video's - by Connie - 2011-12-04, 01:05:48
Adding Youtube video's - by Draxeiro - 2011-12-04, 01:28:41
Adding Youtube video's - by Oleg06 - 2011-12-04, 01:37:14
Adding Youtube video's - by Connie - 2011-12-04, 01:43:55
Adding Youtube video's - by costas1000 - 2011-12-04, 05:21:28
Adding Youtube video's - by Draxeiro - 2011-12-04, 19:18:41
Adding Youtube video's - by Connie - 2011-12-04, 20:34:39
Adding Youtube video's - by Draxeiro - 2011-12-04, 21:49:25
Adding Youtube video's - by Connie - 2011-12-04, 22:02:00
Adding Youtube video's - by Draxeiro - 2011-12-04, 22:25:22
Adding Youtube video's - by Connie - 2011-12-04, 23:08:08
Adding Youtube video's - by Suikerklontje - 2011-12-07, 16:59:05



Users browsing this thread: 1 Guest(s)