PHPackages                             eab/fancy-gallery-bundle - 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. eab/fancy-gallery-bundle

ActiveLibrary

eab/fancy-gallery-bundle
========================

A simple gallery bundle for eZ Publish, using FancyBox

0.1.1(10y ago)0242PHP

Since Nov 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/eab-dev/EabFancyGalleryBundle)[ Packagist](https://packagist.org/packages/eab/fancy-gallery-bundle)[ RSS](/packages/eab-fancy-gallery-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

EabFancyGalleryBundle
=====================

[](#eabfancygallerybundle)

\##Summary

A simple gallery bundle for eZ Publish, using FancyBox.

\##Author

Andy Caiger

Copyright
---------

[](#copyright)

Copyright (C) 2014-2015 [Enterprise AB Ltd](http://eab.uk)

License
-------

[](#license)

Licensed under [GNU General Public License 2.0](http://www.gnu.org/licenses/gpl-2.0.html)

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

[](#requirements)

- [bower](http://bower.io)
- [fancyBox](https://libraries.io/bower/fancyBox)
- [Bootstrap 3](http://getbootstrap.com/)

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

[](#installation)

1. Install EabFancyGalleryBundle using composer:

    ```
    composer require --update-no-dev --prefer-dist eab/fancy-gallery-bundle

    ```

    Composer will install the bundle and its dependencies into `vendors`.

    You can use git to install into the `src` subtree:

    ```
    git clone https://github.com/eab-dev/EabFancyGalleryBundle.git src/Eab/FancyGalleryBundle

    ```
2. Enable the bundle in the kernel by editing `ezpublish/EzPublishKernel.php`:

    ```
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Sp\BowerBundle\SpBowerBundle(),
            new Eab\FancyGalleryBundle\EabFancyGalleryBundle(),
            // ...
        );
    }
    ```
3. Install the latest version of FancyBox:

    ```
    php ezpublish/console sp:bower:install
    php ezpublish/console assets:install --symlink

    ```

If when installing the bower assets you see an error message like:

```
ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/fancyapps/fancyBox.git", exit code of #128 fatal: unable to connect to github.com

```

the quick workaround is to disable the `git:` protocol:

```
git config --global url."https://".insteadOf git://

```

and run the install command again.

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

[](#configuration)

If your bundle is not extending eZDemoBundle, you need to tell EabFancyGalleryBundle which pagelayout template to use. There are two easy ways to do this:

1. Edit `ezpublish/config/config.yml`:

    ```
     eab_fancy_gallery:
         pagelayout: AcmeMyBundle::pagelayout.html.twig

    ```
2. In your own bundle, edit a file such as `src/Acme/MyBundle/Resources/config/services.yml` and add:

    ```
     parameters:
         eab_fancy_gallery.pagelayout: AcmeMyBundle::pagelayout.html.twig

    ```

    With this second method make sure that your bundle is loaded after EabFancyGalleryBundle.

\#Customizing

The following settings can be configured in the same way as `pagelayout`:

- `summary_in_full_view` - whether or not to show the summary
- `page_limit` - number of images to show per page
- `children_types` - array of content types that should be displayed in the gallery
- `image_variation` - the image variation to use for thumbnails

You can also override the templates by copying `Resources/config/override.yaml`into your own bundle's configuration and changing the controllers or templates (hint: change the keys e.g. change `image:` to `image_override:`).

The FancyBox CSS is loaded by the gallery template. If you want to load it on all pages you need to:

1. Override `full/gallery.html.twig` with your own template that doesn't load the CSS.
2. Edit your `page_header_style.html.twig` template and include the FancyBox CSS asset:

    ```
     {% stylesheets filter='cssrewrite,?cssmin'
         ...
         'bundles/eabfancygallery/components/fancybox/source/jquery.fancybox.css'
         ...
     %}

     {% endstylesheets %}

    ```

\#Updating

After installing this bundle you can run `ezpublish/console sp:bower:install`to update the Fancybox assets at any time. Take care: it will update other bower assets as well!

Caveats
-------

[](#caveats)

1. This bundle assumes your website uses Bootstrap 3. If it doesn't you'll need to override and modify the templates. See the [example template for Bootstrap 2](./Resources/doc/bootstrap2-example.md).
2. The configuration for this bundle is not siteaccess aware. If your site has different layouts for different siteaccesses, you can either override the gallery and image templates for each of your siteaccesses, or else reprogram the way that the 'pagelayout' template variable is set. So please fork the repository, rewrite the code and issue a pull request. Thanks!

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3826d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64753475f7cc603de573e127dfa686575fb5b81d627ff1b1bf7ef4cad73c0b42?d=identicon)[eab](/maintainers/eab)

### Embed Badge

![Health badge](/badges/eab-fancy-gallery-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/eab-fancy-gallery-bundle/health.svg)](https://phpackages.com/packages/eab-fancy-gallery-bundle)
```

###  Alternatives

[kaliop/ezmigrationbundle

Kaliop eZ-Migration Bundle

54358.0k9](/packages/kaliop-ezmigrationbundle)[ezsystems/repository-forms

Use Symfony forms with eZ Platform repository objects

34668.5k10](/packages/ezsystems-repository-forms)[ezsystems/legacy-bridge

eZ Platform bridge to eZ Publish Legacy

17118.6k4](/packages/ezsystems-legacy-bridge)[netgen/admin-ui-bundle

Netgen Admin UI implements an alternate administration UI for eZ Platform, based on eZ Publish Legacy administration interface

3325.4k4](/packages/netgen-admin-ui-bundle)[ezsystems/demobundle

Demo bundle for eZ Publish Platform

10159.5k4](/packages/ezsystems-demobundle)[netgen/information-collection-bundle

Information collection alike feature for Ibexa Platform

1945.1k8](/packages/netgen-information-collection-bundle)

PHPackages © 2026

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