bymayo / craft-dribbble Goto Github PK
View Code? Open in Web Editor NEWPull Dribbble shots (+more) in to your Craft CMS project
License: MIT License
Pull Dribbble shots (+more) in to your Craft CMS project
License: MIT License
Any idea the tags for pulling 3 random shots?
Will wrapping the tags in {% cache %}
solve this? For example:
{% cache for 12 hours %}
{% set shots = craft.dribbble.get('user/shots', 180) %}
{% set shots = shuffle(shots) %}
{% for shot in shots|slice(0,3) %}
{{ shot.title }}
{% endfor %}
{% endcache %}
composer require bymayo/dribbble
Using version ^2.0 for bymayo/dribbble
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for bymayo/dribbble ^2.0 -> satisfiable by bymayo/dribbble[2.0.0].
- bymayo/dribbble 2.0.0 requires crewlabs/oauth2-dribbble dev-api2 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
When installing this plugin with Composer 1, the following deprecation notice is output:
Deprecation Notice: Class
bymayo\dribbble\assetbundles\Dribbble\DribbbleAsset
located in./vendor/bymayo/dribbble/src/assetbundles/dribbble/DribbbleAsset.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/dribbble src/assetbundles/Dribbble
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.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.