This repository has been archived by the owner. It is now read-only.
A Grav CMS theme template and matching blueprint to use a custom page type to display Embed.ly Cards.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
README.md
embedlycard.html.twig
embedlycard.yaml

README.md

Grav Theme Embed.ly Card Template and BluePrint

This Template and Blueprint combination provides the ability to include an Embed.ly Card into any Grav Page, with the ability to easily edit the content of an Embed.ly Card within the Grav Admin Panel.

Installing the Template

  • Copy the file embedlycard.html.twig to the templates folder in your active Theme folder

Installing the Blueprint

  • Copy the file embedlycard.yaml to the blueprints folder in your active Theme folder

Using the Installed Template and Blueprint in the Admin Panel

  1. Add a new page, using the Embedlycard template: New Embedly Card Page
    It is recommend that Visible is set to No to avoid adding a numeric prefix to the default page filename.

  2. Display the newly created Embedly Card within a Page, either by using the Page Inject plugin ([plugin:page-inject](/my-embedly-card)) or by using Twig (e.g. {{ page.find('my-embedly-card').content } }}).

Editing an Embedly Card Page in the Admin Panel

Editing Embedly Card Page

Using the Embedly Card Template in Page Frontmatter

---
title: 'My Embedly Card'
embedly_card_title: 'Discover the Unknown – Phase 1 of the DLD Process'
embedly_card_url: 'https://experience.sap.com/basics/discover-the-unknown/'
published: true
routable: false
visible: false
---

##### Paul's Web Pick of the Week

Example Embedly Card Page

Example Embedly Card Page