Kirby LISTER - a file picker field with a preview

Kirby LISTER

Kirby LISTER

Version 1.0.0 - 2016-07-16

  • Initial Public Offering.

What is it?

Kirby - LISTER is a file-picker for the Kirby CMS, which supports a file preview (when available).

It uses the excellent jQuery plug-in of http://www.selectboxit.com

Installation

  • Download the .zip and extract it to the root of your site.
  • Optionally you can configure some settings in site/config/config.php.

Config

By default, no config is needed. But you can set your text / string preferences like the one below;

c::set('lister_loading', 'I am building the asset list, please wait...');
c::set('lister_select', 'You have to select a file first...');

Usage

Kirby LISTER is a field, like the others.

/* BLUEPRINT */
  lister_example:
    label: Choose your file...
    type: lister

/* TEMPLATE */
<?php echo $page->file($page->lister_example())->url(); ?>

Kirby LISTER

Kirby LISTER - a file picker with a (pre-) view

You don’t like this one?

1 Like

Nope :slight_smile:

When you have many files, that one becames inane long - that’s why I created a pull-down list…

I had a portfolio page with about 100 images; the other plug-in did render 100 entries on one page, which became very long. So I prefered the other solution (which is not limited to images).

But I think it’s good people can choose what suites there needs / workflow!


(…and a pulldown works more nicely in a modal)

1 Like

Pushed https://github.com/1n3JgKl9pQ6cUMrW/kirby-lister/ so it works fine at pages with sub-pages (children) right now.

##Version 1.1.7 - 2017-02-25

  1. Bugfix where subpages were treated like media-files.
  2. Tested with Kirby 2.4
1 Like