Here is an updated version of my original "Simple Gallery" module. It's much easier to use now ;)
Main features:
- Complete clean up of code to make it more readerable & easier to work with
- Uses "Action" variables to store gallery settings (number of photos per rows, photo size, photo quality, diplay template etc..)
- Uses a math funtion called "Modulus" (%) to work out how many photos per row
EXAMPLE:
{IIF, "{MATH, "[PhotoNumber,Action]%[PhotosPerRow,Action]"}=0", "", ""}
[PhotoNumber,Action] = COUNT OF CURRENT RECORD
% = MODULUS MATH FUCTION
[PhotosPerRow,Action] = PHOTOS PER ROW
Basically the way it works is:
The "COUNT OF CURRENT RECORD" % "PHOTOS PER ROW" will equal "0" when the max number of photo is reached, we know then to add "" to create a new row to place more photos in.
DOWNLOAD SIMPLE GALLERY V2