Forum

HomeHomeCoreCoreSamples and oth...Samples and oth...Simple Gallery Version 2Simple Gallery Version 2
Previous
 
Next
New Post
5/16/2010 7:55 AM
 

Here is an updated version of my original "Simple Gallery" module. It's much easier to use now ;)

Main features:

  1. Complete clean up of code to make it more readerable & easier to work with
  2. Uses "Action" variables to store gallery settings (number of photos per rows, photo size, photo quality, diplay template etc..)
  3. 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

New Post
5/16/2010 8:13 AM
 

I have also added a simple example of how easy it is to use the modulus maths function is here:

Simple Modulus Example

New Post
7/10/2011 1:32 PM
 
FYI: I have just re-uploaded the config as the original link was broken ;)
Previous
 
Next
HomeHomeCoreCoreSamples and oth...Samples and oth...Simple Gallery Version 2Simple Gallery Version 2


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share