Developer’s Guide

Table Of Contents
Custom web publishing using CDML
9-7
To use a format file template:
1. Copy and paste the template from the CDML Tool into the HTML
source of a blank document, or open the template text file from the
CDML Templates folder (inside the CDML folder) in a text editor or
HTML authoring program.
FileMaker Developer 5 > External FileMaker APIs > CDML > Web Tools >
CDML Templates
Note When you’re familiar with the template, you may want to
delete the comments (including the comment tags <!-- -->).
2. Use the CDML Tool to add any CDML tags for the fields and
other types of data you’re requesting from the database.
See “Categories of CDML tags” next.
3. Add text, images and links as desired.
4. Name and save the file in your web site.
For examples of more complex format files, see the CDML examples
included with FileMaker Developer. These examples are described
in “Planning your web site” on page 9-14.
Edit.htm Make changes to one record
Edit_reply.htm Receive feedback after editing a record
New.htm Add a record
New_reply.htm Receive feedback after adding a record
Results.htm View the results of a search for records
Search.htm Search for specific records
Choose this
template So web users can do this with your database
The delete.htm format file with all <!--comments--> removed
This template Contains these CDML tags
Delete.htm -db, -lay, -format, [FMP-Field: Field Name1], [FMP-
Field: Field Name2], [FMP-CurrentRecID], and -delete
Delete_reply.htm [FMP-LinkRecID: Layout=Layout Name, Format=path-
to-file/default.htm]
Detail.htm -db, -recid, [FMP-CurrentRecID], -lay, -format, [FMP-
Field: Field Name1], [FMP-Field: Field Name2], -edit
Edit.htm -db, -recid, [FMP-CurrentRecID], -lay, -format, [FMP-
Field: Field Name1], [FMP-Field: Field Name2], -edit
Edit_reply.htm [FMP-LinkRecID: Layout=Layout Name, Format=path-
to-file/Detail.htm]
New.htm -db, -lay, -format, -new
New_reply.htm [FMP-LinkRecID: Layout=Layout Name, Format=path-
to-file/Detail.htm]
Results.htm [FMP-RangeStart], [FMP-RangeEnd],
[FMP-CurrentFoundCount], [FMP-RangeSize],
[FMP-LinkPrevious], [/FMP-LinkPrevious]
[FMP-Record]
[FMP-Field: Field Name1], [FMP-Field: Field Name2]
[FMP-LinkRecID: Layout=layout_name, Format=path-
to-file/detail.htm]
[/FMP-Record]
[FMP-LinkNext], [/FMP-LinkNext]
Search.htm -db, -lay, -format, -op -find