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
!
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
- path
- name
- uploadDate
- model
- lens
- focalLength
- shutterSpeed
- fStop
- iso
- time
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 %}