0.0.6 • Published 3 months ago

@tanglemedia/directus-collection-embed v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

@tanglemedia/directus-collection-embed

Installs the Embed Collection to your Directus project.

The package will install the following collections:

  • Article Collection tngl_embed

It automatically sets the following:

  • Creates a new role called Website. If the Website role already exist, it will not create a new one.
  • Website role will have READ permission to tngl_embed collection
  • Sets default presets when viewing a list of pages

Requirements

  • Directus >= 10.10.1
  • Node >= 18.x.x

Install

  1. Add the following variables to your Directus env file:

    • SITE_BASE_URL (Base url of the site. Needed to properly format the full url of the page in the collection)
  2. npm i @tanglemedia/directus-collection-embed

  3. npx directus bootstrap to update your database and restart directus

What's inside the package

Article Collection

  • Title (optional)
  • Type
    • Youtube
    • General (default)
  • Youtube ID (if type selected is Youtube)
  • Embed Code (if type selected is General)
0.0.5

3 months ago

0.0.6

3 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago