Giter Club home page Giter Club logo

Comments (5)

fabianmichael avatar fabianmichael commented on July 29, 2024 1

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.

fabianmichael avatar fabianmichael commented on July 29, 2024

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.

jolantis avatar jolantis commented on July 29, 2024

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.

jolantis avatar jolantis commented on July 29, 2024

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:

imageset-dynamic-api-issue

from kirby-imageset.

jolantis avatar jolantis commented on July 29, 2024

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)

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.