Git Product home page Git Product logo

kirby-images's Introduction

Kirby Images Buy me a beer

The images field can be used to edit groups of images very easily by drag-and-drop. Simply take an image from the sidebar and drop it on the field. You can also reorder images inside the field, not linked to the regular order.

Installation

Put the kirby-images folder into your site/plugins folder and rename it to images.

Example

Preview

slideshow:
  label:       Slideshow
  type:        images

Template

To display an image slideshow with the selected images you can use a code like this:

<div class="slider">
<?php foreach($page->slideshow()->yaml() as $image): ?>   
  <?php if($image = $page->image($image)): ?>
    <?= $image->crop(1200,500)->html(); ?>  		    
  <?php endif ?>
<?php endforeach; ?>
</div>

Drag between multiple instances

You can even move images between multiple instances of the images field like this:

Drag

Options

Limit the number of images

As of Images 1.0.4 you can limit the number of images:

slideshow:
  label:       Slideshow
  type:        images
  limit:       4

kirby-images's People

Contributors

medienbaecker avatar fturcheti avatar jenstornell avatar mciszczon avatar svenluijten avatar davidelanfranchi avatar olach avatar malvese avatar saltandbits avatar sylvainjule avatar

Stargazers

André Philip avatar

Watchers

André Philip avatar Plagasul avatar

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.