Download the PHP package pixeldev/sulu-gallerybundle without Composer
On this page you can find all versions of the php package pixeldev/sulu-gallerybundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixeldev/sulu-gallerybundle
More information about pixeldev/sulu-gallerybundle
Files in pixeldev/sulu-gallerybundle
Package sulu-gallerybundle
Short Description Manage gallery for Sulu
License MIT
Homepage https://github.com/Pixel-Developpement/sulu-gallery-bundle
Informations about the package sulu-gallerybundle
Gallery Bundle
Presentation
A bundle for managing image galleries. The galleries are pages the allows you to display pictures (of a place of interest for instance).
Features
- Default image via settings
- Translation
- Search
- Preview of the page in the edit form
Requirement
- PHP >= 7.4
- Sulu >= 2.4
- Symfony >= 5.4
- Composer
Installation
Install the bundle
Execute the following composer command to add the bundle to the dependencies of your project:
Enable the bundle
Enable the bundle by adding it to the list of registered bundles in the config/bundles.php
file of your project:
Update schema
Bundle Config
Define the Admin Api Route in routes_admin.yaml
Use
Add/Edit a gallery
Go to the "Gallery" section in the administration interface. Then, click on "Add". Fill the fields that needed for your use.
Here is the list of the fields:
- Name (mandatory)
- URL (mandatory and filled automatically according to the name)
- Cover
- Images
- Description
- Location
Once you finished, click on "Save".
Your gallery is not visible on website yet. In order to do that, click on "Activate?". It should be now visible for visitors.
To edit a gallery, simply click on the pencil at the left of the gallery you wish to edit.
Remove/Restore a gallery
There are two ways to remove a gallery:
- Check every gallery you want to remove and then click on "Delete"
- Go to the detail of a gallrey (see the above section) and click on "Delete".
In both cases, the gallery will be put in the trash.
To access the trash, go to the "Settings" and click on "Trash". To restore a gallery, click on the clock at the left. Confirm the restore. You will be redirected to the detail of the gallery you restored.
To remove permanently a gallery, check all the galleries you want to remove and click on "Delete".
Settings
This bundle comes with settings. There is only one setting, it's the configuration of a default image.
To use the settings, you need to call the gallery_settings twig function in the template you need to. This function don't take any parameters
Example of use:
Contributing
You can contribute to this bundle. The only thing you must do is respect the coding standard we implements.
You can find them in the ecs.php
file.
All versions of sulu-gallerybundle with dependencies
sulu/sulu Version ^2.4
symfony/config Version ^5.0 || ^6.0
symfony/dependency-injection Version ^5.0 || ^6.0
symfony/framework-bundle Version ^5.0 || ^6.0
symfony/http-foundation Version ^5.0 || ^6.0
symfony/http-kernel Version ^5.0 || ^6.0