Skip to content

This extension allows you to create galleries from a specific folder in /files. It uses the title of the entry as folder.

Notifications You must be signed in to change notification settings

blockmurder/bolt-extension-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gallery

This extension allows you to create galleries from a specific folder in /files. It uses the title of the entry as folder.

This needs a new contenttype galleries!

Settings

gallery_path: path sets the path after /files/

pathstructure: by_year changes the order and navigation of galleries:

  • by_year path will be /files/gallery_path/Year/Month/slug
  • unsorted path will be /files/gallery_path/slug

Keys for GalleryList

  • path
  • name
  • uploadDate
  • model
  • lens
  • focalLength
  • shutterSpeed
  • fStop
  • iso
  • time

Examples

for GalleryList()

{% for image in GalleryList( record.slug , record.datecreated ) %}
<li>
    <a href="{{ image(image.path) }}" title="{{ image.name }}">
        <div class="images">
            <img src="{{ thumbnail( image.path, 300, 1200) }}" alt="" />
        </div>
        <div class="title">
            <h3>{{ image.name }}</h3>
        </div>
    </a>
</li>
{% endfor %}

for GalleryPreview()

{% setcontent galleries = 'galleries/latest/6' %}
{% for gallery in galleries %}
{% set image = GalleryPreview( gallery.slug , gallery.datecreated ) %}
<li>
	<a href="{{ gallery.link }}" title="{{ gallery.title }}">
		<img src="{{ thumbnail(image, 263, 178 , 'c') }}" alt=" " />
	</a>
	<div class="title">
		<h3><a href="{{ gallery.link }}">{{ gallery.title }}</a></h3>
	</div>
</li>
{% endfor %}

About

This extension allows you to create galleries from a specific folder in /files. It uses the title of the entry as folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages