PHPackages                             edgarindustries/youtubefield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. edgarindustries/youtubefield

Abandoned → [toastnz/youtubefield](/?search=toastnz%2Fyoutubefield)ArchivedSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

edgarindustries/youtubefield
============================

Field for selecting YouTube videos. Takes various URL formats as input and stores the YouTube ID.

v2.0.0(6y ago)1639.5k17[1 PRs](https://github.com/edlinklater/silverstripe-youtubefield/pulls)BSD-3-ClausePHP

Since Jul 23Pushed 3y ago3 watchersCompare

[ Source](https://github.com/edlinklater/silverstripe-youtubefield)[ Packagist](https://packagist.org/packages/edgarindustries/youtubefield)[ RSS](/packages/edgarindustries-youtubefield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

**ABANDONED!** Use the fork [toastnz/youtubefield](https://github.com/toastnz/silverstripe-youtubefield).

YouTube Field for SilverStripe
==============================

[](#youtube-field-for-silverstripe)

Introduction
------------

[](#introduction)

This SilverStripe module provides a YouTube field for use in the CMS/ModelAdmin. It accepts input of various common YouTube URL formats and converts them for storage in database as the 11-character YouTube ID.

Once a valid ID is saved the field will display the video's thumbnail and title.

Optionally you can provide a key for the YouTube v3 API, which is used to display additional information (duration and view count) and provides information immediately (rather than after saving).

[![Screenshot of Video Information](https://cloud.githubusercontent.com/assets/1176635/10863696/39612420-803c-11e5-8940-95e190c06545.png)](https://cloud.githubusercontent.com/assets/1176635/10863696/39612420-803c-11e5-8940-95e190c06545.png)

Requirements
------------

[](#requirements)

- silverstripe/framework ^4.0 *(See `1` branch for SilverStripe 3 compatibility)*

Basic field
-----------

[](#basic-field)

*mysite/code/Page.php*

```
