Download the PHP package markocupic/gallery-creator-bundle without Composer
On this page you can find all versions of the php package markocupic/gallery-creator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markocupic/gallery-creator-bundle
More information about markocupic/gallery-creator-bundle
Files in markocupic/gallery-creator-bundle
Package gallery-creator-bundle
Short Description gallery extension for Contao CMS
License LGPL-3.0+
Rated 5.00 based on 1 reviews
Informations about the package gallery-creator-bundle
Gallery Creator Bundle
Frontend and backend extension for Contao CMS.
This extension lets you create, display and manage photo albums in your Contao installation. It ships with an album listing and an album detail view, supports nested (child) albums, per-album access rights, and Markdown album descriptions.
https://user-images.githubusercontent.com/1525166/154361326-cc4dc4c0-60c5-41e3-a0dc-a41fcd3d242e.mp4
Table of contents
- Requirements
- Installation
- Upgrading
- Configuration
- Access rights (CHMOD)
- Lightbox
- Styling (CSS)
- Frontend templates
- Extending the bundle
- GenerateFrontendTemplateEvent
- ImagePostInsertEvent
- Running the tests
Requirements
- Contao
^5.3 - PHP
^8.3
Installation
Use the Contao Manager or run the following command in your CLI:
Upgrading
⚠️ Upgrading to 3.3.0? This release contains breaking changes to the frontend Twig templates and removes the legacy
galleryCreatorGenerateFrontendTemplateandgalleryCreatorImagePostInserthooks (replaced by Symfony events). Please read the UPGRADE.md before updating, especially if you have customized any templates or used one of these hooks.
Configuration
The bundle ships with a default configuration. To override it, add your settings to your
project configuration (e.g. config/config.yaml):
Access rights (CHMOD)
Go to the Contao backend settings and select a default album owner, a default album owner group and the default access rights.
Important: If you leave the "album owner" field empty, the currently logged-in backend user automatically becomes the album owner when creating a new album.
Lightbox
As a lightbox we strongly recommend Glightbox:
Make sure you have activated the lightbox template in the layout settings of your theme in the Contao backend.
Styling (CSS)
Gallery Creator adds the .gc-listing-view and/or the .gc-detail-view class to the
<body> tag. This helps you show or hide items depending on the current mode (listing vs.
detail view).
Frontend templates
The frontend output is rendered with Contao Twig components. You can override any of the
shipped templates in your project's contao/templates/ directory:
content_element/gallery_creator.html.twigcontent_element/gallery_creator_news.html.twigcomponent/_album.html.twigcomponent/_album_detail_view.html.twigcomponent/_album_list_view.html.twig
If you override these templates, be aware that the template variables changed in 3.3.0. See UPGRADE.md for the details.
Extending the bundle
GenerateFrontendTemplateEvent
Use the GenerateFrontendTemplateEvent to adapt the frontend output. It is dispatched
right before the gallery frontend template is rendered and carries the content element
controller, the template, the current request and the active album (if there is one).
Listeners mutate the template in place; no return value is expected.
This replaces the in version 3.0.0 removed
galleryCreatorGenerateFrontendTemplatehook (see UPGRADE.md).
ImagePostInsertEvent
Use the ImagePostInsertEvent to adapt the picture entity when uploading new images to an
album. It is dispatched right after an image has been uploaded and written to the database
and carries the pictures model. Listeners mutate the model in place; no return value is
expected.
This replaces the in version 3.0.0 removed
galleryCreatorImagePostInserthook (see UPGRADE.md).
Have fun!
All versions of gallery-creator-bundle with dependencies
contao/core-bundle Version ^5.3
codefog/contao-haste Version ^5.0
friendsofsymfony/http-cache-bundle Version ^3.4
jaybizzle/crawler-detect Version ^1.2
league/commonmark Version ^2.3
symfony/webpack-encore-bundle Version ^v2.4