webandco/neos-giphy

There is no license information available for the latest version (1.0.1) of this package.

Giphy Asset Source for Neos CMS

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 0

Open Issues: 0

Type:neos-package

1.0.1 2020-06-15 14:53 UTC

This package is auto-updated.

Last update: 2024-04-20 02:34:42 UTC


README

Installation

composer require webandco/neos-giphy

How to use

  1. Get an APi ket from https://developers.giphy.com/
  2. Configure the API Key in Settings.yaml

Configuration

Neos:
  Media:
    assetSources:
      giphy:
        assetSource: 'Webandco\Giphy\AssetSource\GiphyAssetSource'
        assetSourceOptions:
          apiKey: 'yourAPIKey'
          copyrightNoticeTemplate: '${"Photo by <a href=\"" + user.profile_url + "\">" + user.display_name + "</a>"}'

The following data can be used in copyrightNoticeTemplate

  • user.display_name
  • user.username
  • user.avatar_url
  • user.banner_url
  • user.profile_url