384

Product support

Visit this product's website for support.

Categories

This is a simple plugin to organize galleries and images.

There are default components ready to be used in layouts or pages.

Features

  • Hierarchical galleries tree
  • Preview and gallery images from upload or Media manager
  • Gallery form can be customized in plugin Settings
  • Categories, Tags and Attributes for galleries

Installation

GitHub clone into /plugins dir:

git clone https://github.com/jan-vince/smallgallery.git

OctoberCMS backend

Just look for 'Small Gallery' in search field in:

Settings > Updates&Plugins > Install plugins

Permissions

You can set permissions to access each of a plugin parts.

Settings

First you should set up which fields will be visible in gallery form. Go to > Gallery and check/uncheck available fields.

You can also set galleries list preview image height and width.

Galleries

You can create galleries and organize them in a hierarchical tree.

There are components ready to use for galleries listing in Twig.

Categories

Here you can set up categories hierarchy (it is a nested tree).

There are components ready to use for categories listing in Twig.

Tags

Simple list of tags that can be assigned to records.

Attributes

If you need a specific information for your records, here you can define a name of an attribute and it's type (string, text, number, switch).

If Attributes are allowed in Records list, you can select an attribute and add a custom content to it.

Access attributes in Twig

If you assigned one or more attributes to any record, you can iterate through them with Twig code like:

{% for attribute in record.attributes %}

    {{ attribute.name }} : {{ attribute.value }}

{% endfor %}

Or there are functions to get a specific attribute (or attribute's value) by slug like:

    {{ record.getAttributeBySlug('my-attribute-slug') }}

    {{ record.getAttributeValueBySlug('my-attribute-slug') }}

Components

Galleries

You can add a Galleries component to a page, layout or partial.

Gallery detail

You can add a gallery detail to your page, layout or partial.


Special thanks goes to:
OctoberCMS team members and supporters for this great system. Igor Ovsyannykov for his photo I have used in the plugin banner. Font Awesome for Camera symbol.

Created by Jan Vince, freelance web designer from Czech Republic.

1.4.0

Added itemsPaginate for Galleries component to allow pagination

Jan 25, 2023

1.3.2

Fixed Galleries component

Jun 29, 2022

1.3.1

Fixed repeaters in Gallery forms

May 04, 2022

1.3.0

Added German locale (thanks speoman)

Sep 15, 2021

1.2.5

Fixed visibility of gallery form fields after first install (default is now to show all fields unless changed in Settings)

Aug 12, 2018

1.2.4

Fixed columns type for created_at and updated_at in Galleries list

Jul 16, 2018

1.2.3

Fixed column type and galleries component limit

Jul 16, 2018

1.2.2

Ordering galleries with accented characters

Jul 16, 2018

1.2.1

Added more columns to Galleries list

Jun 29, 2018

1.2.0

Added new function to galleries component (rootOnly, limit, orderBy)

Jun 29, 2018

1.1.1

Fixed translations

Apr 23, 2018

1.1.0

!!! Renamed categories components to prevent interaction with SmallRecords plugin. Please update your files to use component's names as -- categories -> galleryCategories, categoryDetail -> galleryCategoryDetail.

Apr 19, 2018

1.0.4

Fixed Update and new button.

Apr 13, 2018

1.0.3

Added missing translations

Apr 10, 2018

1.0.2

Fixed gallery list component

Apr 10, 2018

1.0.1

Added unique check for galleries slug

Apr 10, 2018

1.0.0

Initial version

Apr 10, 2018