Adds shortcodes for inserting YouTube and Vimeo videos.
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.
Run the following to add this module as a requirement and install it via composer.
$ composer require studiobonito/silverstripe-youtubevideos
Copy the 'shortcodes' folder to your the root of your SilverStripe installation.
Use the following shortcode in any
HTMLTextField to embed a YouTube video
or a Vimeo video
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]
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The BSD-2-Clause License. Please see License File for more information.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem