weboftalent/silverstripe-shortcode-youtube

There is no license information available for the latest version (1.0.1) of this package.

Adds a shortcode for embedding YouTube video. For Silverstripe

Installs: 139

Dependents: 0

Stars: 0

Watchers: 2

Forks: 3

Open Issues: 0

Type: silverstripe-module

1.0.1 2013-11-11 09:28 UTC

README

Build Status Scrutinizer Code Quality Code Coverage Build Status codecov.io

Latest Stable Version Latest Unstable Version Total Downloads License Monthly Downloads Daily Downloads

Dependency Status Reference Status

codecov.io This module allows YouTube videos to be entered as short codes. It is based on the SSBits tutorial http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/ and adpated to work with Silverstripe 3.

Functionality

Videos can be entered into a page using the YouTube code (the v parameter in a YouTube URL).

[YouTube id='_yY3Gu8HbzE']

The following parameters are also permitted:

  • autoplay - set this value to anything, e.g. 1 or true, to enable autoplay on the embedded video
  • caption - Text to display after an embedded video. This can either be passed as an attribute or as follows [YouTube id='_yY3Gu8HbzE']This is the caption[/YouTube]
  • height - set the height of the video
  • width - set the width of the video