Skip to content

Releases: studiobonito/silverstripe-shortcodes

v1.0.4

17 Dec 16:11
Compare
Choose a tag to compare

ShortCodes Module

Added

  • Included .editorconfig file.

v1.0.3

02 Oct 13:48
Compare
Choose a tag to compare

ShortCodes Module

Added

  • Included changelog.
  • Included .gitignore file.
  • Included .gitattributes file.
  • Included php version >=5.3.0 as a dependency.
  • Updated license.
  • Included contributing guide.
  • Updated composer.json file.
  • Updated readme.

Fixed

  • Update Vimeo embed URL to use https.

v1.0.2

02 Oct 13:47
Compare
Choose a tag to compare

ShortCodes Module

Fixed

  • Replaced YouTube embedding with object to iframe.

v1.0.1

02 Oct 13:47
Compare
Choose a tag to compare

ShortCodes Module

Fixed

  • Updated readme.

v1.0.0

02 Oct 13:46
Compare
Choose a tag to compare

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.

$ composer require studiobonito/silverstripe-youtubevideos

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]