Parik Tiwari
Parik Tiwari

Reputation: 1525

How to embed youtube video on the pages

I want to embed multiple youtube videos on pages and want to give the same option to the content creator. I did see the modules apostrophe-oembed and browser-apostrophe-oembed. Can you provide and example for the same? Thanks!

Upvotes: 0

Views: 391

Answers (3)

MPOCH
MPOCH

Reputation: 31

With the latest version now in November 2018, all I needed to do was to add 'apostrophe-video': {} into the widgets list for the apos.area on the page. Adding something to the app.js caused the site to break.

Upvotes: 1

Parik Tiwari
Parik Tiwari

Reputation: 1525

The solution that worked for me is:

  1. Add the widget in the app.js file. 'apostrophe-video-widgets': {},
  2. COPY the apostrophe-video-widgets folder from the node_modules folder to the root/lib/modules

Upvotes: 0

Tom Boutell
Tom Boutell

Reputation: 7572

I am the lead developer of Apostrophe at P'unk Avenue.

Try apostrophe-video-widgets. Works like adding any other widget to an apos.area or apos.singleton call. There are no required options.

Just as a reminder, when calling apos.area or apos.singleton you just need the name of the widget (apostrophe-video), not the name of the module that happens to provide it (apostrophe-video-widgets).

Upvotes: 0

Related Questions