buckleshusky/remoteimage

Quickly get remote images off of other websites.

Installs: 29

Dependents: 2

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Type:silverstripe-module

dev-master / 1.x-dev 2017-11-25 15:48 UTC

README

Quickly get remote images off of other websites.

Maintainer Contact

  • Buckles

Requirements

  • SilverStripe CMS 3.1.x

Installation

  • Run composer require buckleshusky/remoteimage dev-master in the project folder
  • Run dev/build?flush=all to regenerate the manifest

Example Usage

//get the remote image for video
$videoImage = new RemoteImage("Title of image", "http://someWebsite.com/image.png");
$videoImage->setFolderName("folderName");
$videoImage->getImage();

//create the link
$this->VideoImageID = $videoImage->makeImageAndLink();

Configuration Options

Nothing to configure