Developer’s Guide

Table Of Contents
Creating custom layout themes 3-3
If your new themes don’t appear in the New Layout/Report assistant,
you might have made a syntax error. See “Checking your theme
document for errors” on page 3-11 for information.
Basic requirements for a theme file
FileMaker Pro layout themes are described in an XML document
saved in text file format. Each text file must have the .fth filename
extension and reside in the Themes folder inside the FileMaker Pro
application folder so FileMaker Pro can display the themes in the
New Layout/Report assistant.
XML resembles HTML in many ways—however, unlike HTML the
XML for layout themes must be well-formed and comply with the
required syntax. Omitting a required element or attribute, or
mismatching start and end tags will result in an unusable document
and FileMaker Pro will be unable to parse the XML or display the
themes in the New Layout/Report assistant.
Minimum required XML elements for themes
Every theme file must begin with an XML-document processing
instruction that declares it as an XML document using the XML 1.0
specification. In addition, an XML document for a FileMaker Pro
layout theme must contain the <FMTHEMES> and
</FMTHEMES> start and end tags for the file. This FMTHEMES
root element can contain one or more FMTHEME element.
Containing all of your themes (FMTHEME elements) in one file is
useful if you want to organize the way that themes appear in
FileMaker Pro. The order that FMTHEME elements are listed in the
file determines the order that the THEMENAME values will appear
in the New Layout/Report assistant.
Note Values for the THEMENAME element can contain any
characters from the ASCII character set. However, if you’re using an
XML editor to write your themes or if you plan to use the themes on
different platforms, certain measures must be taken.
Names of your custom themes appear as
options in the New Layout/ Report assistant
Minimum elements required for a theme file