level51 / silverstripe-youtubesync
A SilverStripe module for syncing videos with Youtube
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 6
Type:silverstripe-module
Suggests
- undefinedoffset/sortablegridfield: To allow sorting of the video entries
README
YoutubeSync is the module of your choice, if you like to show your youtube videos on your homepage. It allows you to fetch videos from Youtube by just giving your username and a valid API key. The videos are stored in the database with a custom DataObject, so the API must not be called on every page load.
Maintainers
- Daniel Kliemsch dk@lvl51.de
Installation
composer require level51/silverstripe-youtubesync
Setup
- Be sure that the module is in a folder youtubesync/ on the root of the project.
sake dev/build "flush=all"
, depending on your config you might have to do this via URI in the browser.- Checkout the google developers console and:
- Activate the YouTube Data API
- Create a API key (Browser key) in the Credentials section
- Go to the CMS settings and put your key and username in the Youtube tab
- Take a look in the Youtube model admin ... and sync for the first time
- You can use the videos in your pages - all you need is a getter - or you can take a look in the basic YoutubeVideoPage contained in the module
Features
- Fetching your Youtube videos - by just giving your username and a valid API key
- A YoutubeVideo DataObject for storage in the database
- A GridField action that allows you to sync with youtube
- The sync is done manually in the backend - so it's not necessary to call the API on each pageload
- The title and description of the fetched videos can be edited - and will not be overwritten on the next sync
- Thanks to the sortablegridfield module the records are also sortable
- A checkbox allows you to hide some videos
- A model admin for the whole process
- A basic page type, that shows the usage (including a basic template)