Helper: social/video/youtube

« All helpers

Embeds a YouTube video into the current page.

In PHP code, call it like this:

echo $this->run (
    'social/video/youtube',
    array ('url' => 'http://youtu.be/xyz')
);

In a template, call it like this:

{! social/video/youtube?url=http://youtu.be/xyz !}

Parameters:

  • url - The URL of the video page.
  • width - The width of the video player (default = 480)
  • height - The height of the video player (default = 303)

Also available in the dynamic objects menu as "Video: YouTube".