Download the PHP package studiobonito/silverstripe-shortcodes without Composer
On this page you can find all versions of the php package studiobonito/silverstripe-shortcodes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studiobonito/silverstripe-shortcodes
More information about studiobonito/silverstripe-shortcodes
Files in studiobonito/silverstripe-shortcodes
Package silverstripe-shortcodes
Short Description Adds shortcodes for inserting YouTube and Vimeo videos.
License BSD-2-Clause
Homepage https://github.com/studiobonito/silverstripe-shortcodes
Informations about the package silverstripe-shortcodes
ShortCodes Module
Overview
ShortCodes Module is based on Daniel Hensby's post at SSbits. It adds a shortcodes for inserting YouTube and Vimeo videos to pages, as well as adding a buttons to the TinyMCE WYSIWYG editor.
Requirements
- SilverStripe 2.4 or newer.
Install
Via Composer
Run the following to add this module as a requirement and install it via composer.
Manually
Copy the 'shortcodes' folder to your the root of your SilverStripe installation.
Usage
Use the following shortcode in any HTMLTextField
to embed a YouTube video
[youtube id=4af1bFh3duo][/youtube]
or a Vimeo video
[vimeo id=29471008][/vimeo]
You can also specify a height and width which can be used by the templates that render the videos
[youtube id=4af1bFh3duo width=300 height=150][/youtube]
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Tom Densham
- All Contributors
License
The BSD-2-Clause License. Please see License File for more information.