2021.1

Table Of Contents
Tip
If you have started creating your Capture OnTheGo template using a COTG Template
Wizard, you can find ready-made elements in the Snippets folder on the Resources pane.
Resources
This page clarifies the difference between Internal, External and Web resources that may be
used in a template, and explains how to refer to them in HTML and in scripts.
Internal resources
Internal resources are files that are added to and saved with the template.
To add images, fonts, style sheets, and snippets to your template, you can drag or copy/paste
them into the Resources Pane. See also: "Images" on page718, "Snippets" on page732,
"Styling templates with CSS files" on page738 and "Fonts" on page774.
Resource files can also be dragged or copy/pasted out of the the application to save them on a
local hard drive.
Alternatively you could import resources and scripts from another template; click File >Import
Resources... in the menu and select a template to import resources from (see ).
Once added or imported, internal resources are accessed using a relative path, depending
where they're called from. Resources can be located in the following folders:
l images/ contains the files in the Images folder.
l fonts/ contains the files in the Fonts folder.
l css/ contains the files in the Stylesheets folder.
l js/ contains the files in the JavaScripts folder.
l snippets/ contains the files in the Snippets folder.
When refering to them, normally you would simply use the path directly with the file name. The
structure within those folders is maintained, so if you create a "signatures" folder within the
"Images" folder, you need to use that structure, for example in HTML: <img
src="images/signatures/johnsmith.gif">. In scripts, you can refer to them in the same way, for
example:
results.loadhtml("snippets/en/navbar.html");
Page 456