weboftalent/silverstripe-shortcode-youtube
Composer 安装命令:
composer require weboftalent/silverstripe-shortcode-youtube
包简介
Adds a shortcode for embedding YouTube video. For Silverstripe
README 文档
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
统计信息
- 总下载量: 1.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-11