PHPackages                             derralf/silverstripe-minigallery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. derralf/silverstripe-minigallery

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

derralf/silverstripe-minigallery
================================

add a mini gallery to any page type

0311PHP

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/derralf/silverstripe-minigallery)[ Packagist](https://packagist.org/packages/derralf/silverstripe-minigallery)[ RSS](/packages/derralf-silverstripe-minigallery/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Minigallery
========================

[](#silverstripe-minigallery)

Simple experimental Module to add a small Gallery to any paty type

Private project, no help/support provided

Objects ab not versioned but can be "hidden".
Attached images will get published/unpublished depending on whether on the object itself "hidden" is activated or not.
See below how to disable this behavior.

Requirements
------------

[](#requirements)

- SilverStripe ^4.1
- silverstripe/vendor-plugin
- symbiote/silverstripe-gridfieldextensions
- derralf/silverstripe-gridfieldtogglevisibility
- jonom/focuspoint ^3.0

Installation
------------

[](#installation)

- Install the module via Composer ```
    composer require derralf/silverstripe-minigallery

    ```

Templates
---------

[](#templates)

```

```

Configuration
-------------

[](#configuration)

In your config.yml:

Config example 1 (extend single Page Types)

```
SilverStripe\Blog\Model\BlogPost:
  extensions:
    - Derralf\Minigallery\MiniGalleryPageExtension

```

Config example 2 (define include list)

```
Page:
  extensions:
    - Derralf\Minigallery\MiniGalleryPageExtension

Derralf\Minigallery\MiniGalleryPageExtension:
  allowed_pagetypes:
    - SilverStripe\Blog\Model\BlogPost
    - My\Namespace\SomePageType
    - Other\Namespace\OtherPageType

```

Config example 3 (define exclude list)

```
Page:
  extensions:
    - Derralf\Minigallery\MiniGalleryPageExtension

Derralf\Minigallery\MiniGalleryPageExtension:
  disallowed_pagetypes:
    - My\NameSpace\HomePage
    - My\Other\Excluded\PageType

```

**Don't** mix `allowed_pagetypes` and `disallowed_pagetypes`

### Set image upload folder name

[](#set-image-upload-folder-name)

1. custom function on your page type

```
## e.g.
public function getCustomMiniGalleryUploadFolderName() {
    return 'minigallery-partner-' . $this->URLSegment;
}

if(method_exists($this->owner, 'getCustomMiniGalleryUploadFolderName')) {
            return $this->owner->getCustomMiniGalleryUploadFolderName();
        }
        if($this->owner->config()->get('minigallery_upload_foldername')) {
            return $this->owner->config()->get('minigallery_upload_foldername');
        }
        return $this->config()->get('image_upload_foldername');

```

or 2. per page type config

```
Page:
  minigallery_upload_foldername: 'minigallery-page'

HomePage:
  minigallery_upload_foldername: 'minigallery-homepage'

```

or 3. with extension config (defaults to 'minigallery')

```
Derralf\Minigallery\MiniGalleryPageExtension:
  image_upload_foldername: 'minigallery'

```

### Disable Auto-Publish and Auto-Unpublish

[](#disable-auto-publish-and-auto-unpublish)

The associated Image is automatically published or unbulblished on save depending on whether "hidden" is activated or not

You can disable this behaviour by adding this to your config:

```
---
name: MyMinigallery
after: Minigallery
---

Derralf\Minigallery\MiniGalleryImage:
  auto_publish_image: false
  auto_unpublish_image: false

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1495867?v=4)[derralf](/maintainers/derralf)[@derralf](https://github.com/derralf)

### Embed Badge

![Health badge](/badges/derralf-silverstripe-minigallery/health.svg)

```
[![Health](https://phpackages.com/badges/derralf-silverstripe-minigallery/health.svg)](https://phpackages.com/packages/derralf-silverstripe-minigallery)
```

###  Alternatives

[yazvonov/laravel-tojs

Transform PHP Vars to JavaScript for Laravel

102.2k](/packages/yazvonov-laravel-tojs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
