Giter Site home page Giter Site logo

craft-embedded_assets_link's Introduction

Embedded Assets Link plugin for Craft CMS 3.x

Adds a link in the Control Panel to Embedded Assets

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later, and the Embedded Assets Plugin.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require marionnewlevant/embedded-assets-link
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Embedded Assets Link.

Brought to you by Marion Newlevant

Inspired in part by the Download Assets plugin.

Icon: export by Nociconist from the Noun Project

craft-embedded_assets_link's People

Contributors

dennisfrank avatar marionnewlevant avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dennisfrank

craft-embedded_assets_link's Issues

ErrorException: Trying to get property 'methods' of non-object in EmbeddedAssetsLinkService

I got the message A server error occured. in the Craft control panel and found this in the web.log.

[error][yii\base\ErrorException:8] yii\base\ErrorException: 
Trying to get property 'methods' of non-object in 
/dist/vendor/marionnewlevant/embedded-assets-link/src/services/EmbeddedAssetsLinkService.php:37
$embeddedAsset = EmbeddedAssets::$plugin->methods->getEmbeddedAsset($element);

This error pops up anytime I select an asset.

Craft v3.5.16
PHP v7.4.13
Plugin v1.0.2

Fix Composer 2 compatibility

When installing this plugin with Composer 1, the following deprecation notice is output:

Deprecation Notice: Class marionnewlevant\embeddedassetslink\assetbundles\EmbeddedAssetsLink\EmbeddedAssetsLinkAsset located in ./vendor/marionnewlevant/embedded-assets-link/src/assetbundles/embeddedassetslink/EmbeddedAssetsLinkAsset.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

Composer 2 was released on October 24, and is now the default version that will be installed, so it’s critical that this gets resolved ASAP, or people will start getting Class not found errors.

To fix, run the following command:

> git mv src/assetbundles/embeddedassetslink src/assetbundles/EmbeddedAssetsLink

Then commit your change and tag a new release.

(Note that you must use the git mv command, as Git tends to not notice case-sensitive file renames otherwise.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.