2017 © Pedro Peláez
 

silverstripe-module youtube-shortcodes

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.

image

spark-green/youtube-shortcodes

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.

  • Thursday, March 10, 2016
  • by sparkgreen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

Requirements

SilverStripe 3.1 or newer, (*2)

Installation Instructions

Composer

Run the following to add this module as a requirement and install it via composer., (*3)

$ composer require spark-green/youtube-shortcodes

Manual

Copy the 'shortcodes' folder to your the root of your SilverStripe installation., (*4)

Usage Overview

Use the following shortcode in any HTMLTextField to embed a YouTube video, (*5)

[youtube id=4af1bFh3duo][/youtube]

You can also specify a height and width which can be used by the templates that render the videos, (*6)

[youtube id=4af1bFh3duo width=300 height=150][/youtube]

The Versions

10/03 2016

dev-master

9999999-dev

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.

  Sources   Download

The Requires

 

by Khushbu Patel