spark-green/youtube-shortcodes

There is no license information available for the latest version (dev-master) of this package.

ShortCodes Module is based on Daniel Hensby's post at SSbits. It adds a shortcode for inserting YouTube videos to pages, as well as adding a buttons to the TinyMCE WYSIWYG editor.

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:silverstripe-module

dev-master 2016-03-10 02:53 UTC

This package is not auto-updated.

Last update: 2024-03-22 16:13:03 UTC


README

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 3.1 or newer

Installation Instructions

Composer

Run the following to add this module as a requirement and install it via composer.

$ composer require spark-green/youtube-shortcodes

Manual

Copy the 'shortcodes' folder to your the root of your SilverStripe installation.

Usage Overview

Use the following shortcode in any HTMLTextField to embed a YouTube video

[youtube id=4af1bFh3duo][/youtube]

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]