weboftalent / silverstripe-shortcode-youtube
Adds a shortcode for embedding YouTube video. For Silverstripe
Installs: 1 227
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:silverstripe-module
Requires
- php: >=5.6
- silverstripe/recipe-cms: ^4
This package is auto-updated.
Last update: 2024-11-22 08:19:31 UTC
README
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