Comments (5)
Hey @jolantis, this was apparently just a little stup bug that made into the final release. Sorry for the invionvenience you experienced.
Best,
Fabian
from kirby-imageset.
This issue is caused, when you try to save a set of presets with the name initial
, because itβs used internally by the plugin to save the initial presets defined in the config.php file. Try to use another name. But if that is an issue for you, I can change the logic, so the name initial is no longer reserved.
from kirby-imageset.
As far as I know I am not using the name initial
for a any set of presets?
This is the contents of the imageset-presets.php
snippet I am using (just like your example):
imageset::presets([
'default' => '200-1000,5',
'small' => '150-500',
'square' => '200x200-1000x1000,4',
]);
imageset::presets('save', 'content');
imageset::presets('reset');
imageset::presets([
'default' => '200-500',
'small' => '100,150,200',
]);
imageset::presets('save', 'sidebar');
imageset::presets('reset');
from kirby-imageset.
Hi Fabian,
Sorry to bother you about this issue I am having, but I just don't get it running. What am I doing wrong?
My test template looks like this:
<?php snippet('html-head')); ?>
<?php snippet('imageset-presets.php'); ?>
<?php snippet('banner'); ?>
<main role="main" class="copy">
<h1><?php echo $page->title()->smartypants()->widont(); ?></h1>
<?php imageset::presets('load', 'content'); ?>
<?php echo $page->intro()->kirbytext(); ?>
<?php echo $page->text()->kirbytext(); ?>
<?php imageset::presets('reset'); ?>
</main>
<?php snippet('footer'); ?>
And the included imageset-presets.php
is the one I posted in my previous post above.
And this is the error I get:
from kirby-imageset.
Thanks @fabianmichael for the quick support and fix.
Now everything is working for me. The testing is over. Now it's time to implement imagekit and imageset.
Thanks for these 2 amazing plugins!
from kirby-imageset.
Related Issues (20)
- Ignore GIF HOT 2
- Uncaught ReferenceError: el is not defined HOT 2
- Using ImageSet with Asset objects HOT 2
- Thumbnails blacking out during lazyload HOT 2
- How does js and css including work? HOT 1
- FocusCrop and Imageset HOT 1
- readme js file HOT 3
- JS Error in the console HOT 4
- lozad.js HOT 1
- Whitespace at bottom of images HOT 4
- Add `display:block` on `.imageset` to readme HOT 1
- hidden images render at smallest srcset size HOT 1
- Can I set default sizes in imageset.presets? HOT 1
- Integrating imageset.js in my workflow HOT 1
- Security vulnerability in build process HOT 2
- Placeholder is removed before image has lazyloaded
- Saturation issues HOT 3
- How to add an HTML attribute to the img tag HOT 2
- Ignore some images in (image: β¦) kirbytag HOT 6
- Future K3 compatibility? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-imageset.