No description, website, or topics provided.
Switch branches/tags
Clone or download
Latest commit ef8296a Dec 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/img Initial release Nov 18, 2018
src v1.0.3 Dec 6, 2018
.gitignore Initial release Nov 18, 2018
CHANGELOG.md Remove tick Dec 6, 2018
LICENSE.md Initial release Nov 18, 2018
README.md Initial release Nov 18, 2018
composer.json v1.0.3 Dec 6, 2018
releases.json v1.0.3 Dec 6, 2018

README.md

oEmbed plugin for Craft CMS 3.x

oEmbed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

If use are looking for CraftCMS 2.5 support use previous project version 1.0.4 which is the latest release for CraftCMS 2.5.

Installing

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require wrav/oembed
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for oEmbed.

Using oEmbed

To use simply call the embed method on your field type

{{ entry.field.render }}

We also provide option to use as a Twig variable

{{ craft.oembed.render(url, options) }}

You can access additional media details using the examples below.

entry.field.media.type
entry.field.media.version
entry.field.media.url
entry.field.media.title
entry.field.media.description
entry.field.media.authorName
entry.field.media.authorUrl
entry.field.media.providerName
entry.field.media.providerUrl
entry.field.media.cacheAge
entry.field.media.thumbnailUrl
entry.field.media.thumbnailWidth
entry.field.media.thumbnailHeight
entry.field.media.html
entry.field.media.width
entry.field.media.height

Additional Essense information can be found here

Credits

Original built while at working at HutSix I've since been granted permission to continue development here.

Change Log

Changes can be viewed here

Support

Get in touch via email or by creating a Github issue