LassoScript Utility
Basics Browse Detail

[IMG]

Tag Link [IMG] Category Image
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source FileMaker Pro
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[IMG] returns an HTML <img> tag referencing the URL for an image from a FileMaker Pro database. Requires a single parameter, the name of the container field which contains the image.

Note: The AnyUser group must have -Search permission on the database and layout to use this tag.

Syntax

[IMG: 'Field_Name']

Parameters

Required Parameters
Field_Name The name of the FileMaker Pro container field that contains the image to be returned.
Optional Parameters
-IMGAlt The alt parameter for the <img> tag.
-IMGWidth The width parameter for the <img> tag.
-IMGHeight The height parameter for the <img> tag.
-IMGBorder The border parameter for the <img> tag.
-IMGIsMap Includes the ismap parameter in the <img> tag.
-IMGUseMap The usemap parameter for the <img> tag.
-IMGAlign The align parameter for the <img> tag.
-IMGName The name parameter for the <img> tag.
-IMGVSpace The vspace parameter for the <img> tag.
-IMGHSpace The hspace parameter for the <img> tag.
-IMGOptions Optional additional parameters to be specified in the <img> tag.

Examples

To display a series of images from a FileMaker Pro database:

Use the [IMG] tag to automatically generate HTML <img> tags within the found set results. The following example returns the Photo field from each record in the Contacts.fp5 database, People layout.

[Inline: -FindAll,
    -Database='Contacts.fp5',
    -Table='People']
  [Records]
    <br>[IMG: 'Photo', -IMGAlt='Photo Field']
  [/Records]
[/Inline]