Skip to content

AndyMBridges/kirby-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Images v0.2 Buy me a beer

This field is still in development and not quite ready yet.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published