Hi folks,
Here is my first snippet.
/****************
* MooShowGallery beta.0.1
* author heliotrope
*
* Credits: Most of the code is highly inspired from
* Modx team dvpt
*
* Used Classes:
* - makeForm => OpenGeek
* - makeTable => OpenGeek
* - iptc_image => Patrick O’Lone
*
* Piece of code and Functions
* ditto => Mark Kaplan
* wayFinder => kylej
*
* .js from Mooshow
* www.mooshow.eatpixels.com
*
*
*
*****************/
FEATURES:
Display a mooshow Gallery from a folder in assets/images/
Edit IPTC Infos for displayed images.
INSTALLATION:
1/ Upload mooshow folder to assets/snippets/
2/ Create requiered chunks
Run phpMyAdmin to insert mooChunk.sql
Required for mooshow - makeForm
3/Create a new snippet Called mooShowGallery
Copy and paste the mooshow.snippet.php code.
4/Create a doc from wich you want to call mooShowGallery
Sample call:
[[mooShowGallery? &pathToImg=`myFolder`]]
[+galleryOutputTable+] //admin table
[+mooFormEdit+] //form to edit IPTC Infos
5/Set the doc to uncached.
Or else visitors wil seed admin pages.
PARAMS :
&pathToImg starts from assets/images/
for Additionnal params see snippet code
IMAGE FILES MUST BE 777
KNOWN ISSUE:
IPTC are restricted to JPG Files.
...
You can view a sample here
FRONT END
==>
http://www.dixsix.fr/contribs/mooshow-meets-modx.php
BACKEND
==>
Any comment or improvements are welcome.
:-)