Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 3.62 KB

instagram.md

File metadata and controls

84 lines (57 loc) · 3.62 KB

Instagram

Media Entity Instagram implements media entity resource provider for Instagram photos and videos.

Requirements

  1. Media Entity

Installation

  1. Download Media Entity from Drupal.org.
  2. Download Media Entity Instagram from Drupal.org.
  3. Install both Media Entity Instagram and Media Entity in the usual way.

Usage

  1. Create a Media bundle:
  • On admin/structure choose Media bundles.

    Step 1

  • Click on + Add media bundle.

    Step 2

  • Fill Label, Description and Type provider fields for your media bundle and click Save media bundle.

    Step 3

  1. Create an Instagram link field on a Media bundle:
  • On media bundles overview page choose Manage fields on created Instagram bundle.

    Step 4

  • Click on + Add field. For a storage type choose Link, fill a Label field and click Save and continue.

    Step 5

  • Return to the bundle configuration and set "Field with source information" to use this new field.

    Step 6

  • On media bundles overview page choose Manage display on created Instagram bundle and select Instagram embed for the newly created field (Instagram link in our case) and then Save.

    Step 7

  1. Create a Media entity:
  • On admin/content/media click on + Add media.

    Step 8

  • Fill Media name, Instagram link fields similarly as it is displayed below and click Save.

    Step 9

    Note: Validation will fail if incorrect Instagram URL is provided and this also works with embed codes and plaintext fields, not just link field.

  • The created Instagram media entity is saved.

    Step 10

  1. Add an entity (media) reference field on a content type:
  • On desired content type (i.e. Article), on admin/structure/types, click on Manage fields.

    Step 11

  • Click on + Add field.

    Step 12

  • From References menu choose Other, fill the Label and click Save and continue.

    Step 13

  • Choose Media for Type of item to reference and click Save field settings.

    Step 14

  • Select Instagram bundle in Reference type section and click Save settings.

    Step 15

  1. Open Manage display of your content type (in our case Article):
  • Select Rendered entity for the newly created field (Entity media reference) and then Save.

    Step 16

  1. Create a new article with embedded Instagram post:
  • For an Instagram reference field choose a created entity Instagram entity.

    Step 17

  • The Instagram posts are displayed on the saved article page.

Maintainers

Get in touch