Developer’s Guide

Table Of Contents
Custom web publishing using CDML 8-15
Three examples are included with FileMaker Developer 5.5 to give
you ideas on how to organize a site. You can also use them as
templates and modify them for your own sites.
Looking at the three CDML examples
The FileMaker Developer 5.5 CD includes three CDML examples
that demonstrate ways to publish your databases on the Web using
CDML. These examples are located in the CDML folder:
Developer Extras\FileMaker, Inc\External FileMaker APIs\CDML\
To examine the three CDML examples:
1. Copy the CDML Examples folder and its contents into the root
level of the Web folder, located inside the FileMaker Pro 5.5
application folder. The contents include one default.htm file, an
Images folder, and the Employee Database, Guest Book, and
Shopping Cart folders.
2. In FileMaker Pro, open each database file inside the three example
folders and make sure that each one is shared via the Web
Companion. See “Enabling the Web Companion” on page 6-3 and
“Sharing the database via the Web” on page 6-5 for information.)
3. In your web browser, type http://localhost or your
computer’s IP address followed by
/CDML Examples/ and press
Enter.
http://localhost/CDML Examples/
The Web Companion displays the default.htm file located inside the
CDML Examples folder.
For information on setting up your computer as a localhost, see
“Testing your site without a network connection” on page 6-17.
4. Click the links on the Web Companion Demonstration page to go
to each of the three examples.
5. As you explore each example site, view the HTML source on each
page to see how CDML is used.
Be sure to examine the FileMaker Pro CGI commands in the HREF
links or HTML forms. (See “Generating FileMaker Pro CGI requests
using CDML” on page 8-3.)
Note To see the CDML replacement tags, open the example files
directly in the browser (without using the web site example links).
Employee Database example
The Employee Database example is designed to demonstrate the
most widely used CDML tags. It shows how to
1 search for records in the database
1 select sorting options
Click a link to go to the default.htm file for each CDML example