how to create web modules

The main web modules are:
    pages dynamic pages executed as xcode scripts
    images extracts image data from the database with an SQL; and resizes and compresses it
    files refer to how to

how to create a page

a. Navigate to web > pages
b. Click the new button to create a page.
c. In the page textbox enter the name of the page.
d. In the html textbox enter the page xcode script.
f. Click save to save it.

how add parameters to a page

a. Click the parameters… cell next to the page.
b. Click the new button to create a parameter.
c. Fillin as follows:
    parameter - the name of the parameter eg. id, name, surname, type, phone, email
    type, etc. refer to parameters reference
d. Click save to save it.
e. Repeat step b to d for each parameter.
f. Click back to go back to the pages.

how to create an image module

a. Navigate to web > images
b. Click the new button to create a image module.
c. In the image textbox enter the name of the image module.
d. In the sql textbox enter the SQL query of the view with placeholders for the parameters.
    first column must be the image data,     second column must the image type eg. image/jpeg, image/png e. Choose resize
    NONE image is output directly
    COMPRESS image is compressed only
    CROP image fills the canvas while maintaining aspect ratio and extra edges are cropped
    LETTERBOX image fills the canvas and bars added to maintain aspect ratio
    STRECTH image is streched to fill the canvas
f. In width enter canvas width.
g. In height enter canvas height.
h. In background enter background color (used for bars in letterbox resizing)
i. In format enter output format eg. image/jpeg, image/png
j. In quality enter compression quality (0 to 100).
h. In cache enter how long the client browser will cache the image before refreshing.
i. Click save to save it.

how add parameters to an image module

a. Click the parameters… cell next to the image module.
b. Click the new button to create a parameter.
c. Fillin as follows:
    parameter - the name of the parameter
    type, etc. refer to parameters reference
d. Click save to save it.
e. Repeat step b to d for each parameter.
f. Click back to go back to the image modules.


Matthew