![]() |
2
users
Sign-in
to change your status |
Galleryne Plugin. Ce plugin va vous permettre d'oublier toutes les galères relatives à l'upload de fichiers avec Symfony. Utilisez ce plugin pour uploader vos photos et autres types de fichiers, gérez vos fichiers, retouchez vos images, directement sur le site et integrez le widget partout ou vous en avez besoin, dans votre application. |

Pour l'installer, il vous suffit d'executer cette commande :
plugin:install gallerynePlugin
OU
Télécharger la dernière version sur le site http://www.galleryne.com
Extractez ensuite les fichiers dans le repertoire Plugins de votre projet Symfony, puis ajoutez cette ligne dans votre fichier de configuration /config/projectConfiguration.class.php :
$this->enablePlugins('gallerynePlugin');
Déployez les fichiers resources du plugin (image, javascript, style) :
symfony publish-assets
Videz le cache :
symfony cc
Une dernière tâche consiste à activer les modules du plugin pour être capable d'y faire appel. Vous devez activer les modules gallery, photos, slideshow et uploader dans le fichier settings.yml relatif à l'application que vous allez utiliser. /apps/{application}/settings.yml
all:
.settings:
enabled_modules: [gallery, photos, slideshow, uploader]
Vous pouvez désormais avoir accès à toutes les fonctionnalités du plugin, à savoir :
*Gestion d'images - Créer une galerie d'image - Uploader des photos dans une galerie - Obtenir des miniatures pour chaque image uploadée - Gérer les photos et y éffectuer des actions (recadrage, rotation, symétrie, filtre de couleur etc) - Obtenir un slideshow pour une galerie (choix de plusieurs types de slideshow) - Pouvoir associer une galerie à n'importe quel objet (Doctrine Behavior Gallerify)
*Upload de fichiers (autre qu'images) - Uploader des fichiers avec le widget d'upload multiple ajax dans n'importe quel formulaire - Ajout de règles de validation relatives aux fichiers uploadés (taille max, nombre max, taille max globale etc ) - Ajout de règles métiers particulières
La configuration du plugin a été poussée à l'extrême pour être totalement adaptable à votre application : Vous pouvez ainsi:
galleryne:
thumbnails_sizes:
- 50
- 150
- 300
galleryne:
default_size: 50 # si la taille spécifiée n'est pas dans la liste précédente (thumbnail_sizes, une nouvelle miniature de cette taille sera créée)
galleryne:
onDelete: cascade # none or cascade, cascade remove all gallery's photos
galleryne:
path_gallery: <?php echo sfConfig::get("sf_upload_dir")."/gallery/" ;?>
Retrouvez toutes les informations dont vous avez besoin sur le site http://www.galleryne.com
| Name | Status | |
|---|---|---|
|
|
lead |
Copyright (c) 2011 Leny Bernard
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to use in
a personnal way. The commercial use is restricted and can be obtained by paying
fees on the galleryne.com website.
Granted users can user the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense but cannot sell derived
copies of the Software, and to permit persons to whom the Software is furnished
to do so.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.