Developer’s Guide

Table Of Contents
Custom web publishing using CDML 8-9
Modified CDML tags
The FileMaker Pro 5 Web Companion supported the following new
or modified CDML tags. Example syntax for these tags is described
in the CDML Reference database (see “About the CDML Reference
database” on page 8-11 for information).
Note The –fmtfield, –mailfmtfield, and –errorfmtfield variable tags
have been disabled and are no longer available for use because of the
security risk they posed for databases published on the Web.
CDML tags new to FileMaker Pro 5
Hidden Do not display this INPUT tag (–db, –lay,
–db & –lay, –error, –format, or –token)
Links Display a format file based on CDML replacement or
action tags within HREF, MAILTO, and SRC (image)
links
Logical Conditionally display data within the [FMP-If] and
[FMP-Else] replacement tags
Looping Display multiple lines of data within one of these looping
types of replacement tags (Current Find, Current Sort,
Layout Fields, Portal, Record, Repeating Fields, Value
List, or Value Names)
Names Only Display a list of database, field, layout, script, or value list
names from any open database
Replacement Display specific data from the database in one of 44 types
of replacement tags on the web page. For example,
display the web user’s IP address in the [FMP-ClientIP]
replacement tag.
Variables (Add) Generate information from the client (web user’s)
computer based on one of eight replacement tags
received as parameters to a request in the FileMaker Pro
CGI command: [FMP-ClientAddress], [FMP-ClientIP],
[FMP-ClientType], [FMP-ClientUserName], [FMP-
CurrentDate], [FMP-CurrentTime],[FMP-CurrentDay],
and [FMP-CurrentToken]
Variables (Display) Display information in one of 21 replacement tags that
correspond to a specific request parameter. For example,
display the maximum number of records in the [FMP-
MaxRecords] replacement tag as specified by the –max
request parameter (CDML variable tag).
Use tags in
this category
For this type of interaction
with FileMaker Pro
New CDML
action tags Description
–dbopen
(action)
Open a database that’s located in the Web folder.
Required parameters: -db, and -format variable tags
Optional parameter: -password
(Remote administration privileges must be set in the Web
Companion Configuration dialog box.)
See “Opening password-protected databases remotely”
on page 6-18 for more information.
–dbclose
(action)
Close a database that’s open in the Web folder or in a site
folder within the Web folder.
Required parameters: -db, and -format variable tags
(Remote administration privileges must be set in the Web
Companion Configuration dialog box.)
See “Opening password-protected databases remotely”
on page 6-18 for more information.