2019.2

Table Of Contents
that this option is only available when editing a Web section in the Workspace.) For further
explanation see: "Includes dialog" on page943.
To make this setting for a particular Web section, right-click the section on the Resources pane
and select Includes.
Web pages
Web pages (also called Web sections) are part of the Web context (see "Web Context" on
page545) in a template.
The Web context outputs one HTML web page. In addition to the HTML text it contains either
the resources or references to the resources necessary to display it.
JavaScript files are added to the <head> in the generated HTML file. JavaScript toolboxes like
jQuery and its plugins, or MooTools, are useful when you want to implement special features in
the web page. (See "Using JavaScript" on page564.)
Style sheets are also added to the <head> and are used just as they would be used in a regular
web page. (Also see: "Styling templates with CSS files" on page743.)
A Web context can contain multiple templates. When generating output from the Web context,
however, only one of the Web templates can be merged with each record. Set the 'default' Web
section (see "Setting a default Web page for output" on page551) before generating Web
output; also see "Generating Web output" on page1448.
Creating a Web page
When creating a Web page, it is advisable to follow design guidelines for web pages, so that
they are likely to look good in different browsers and on different devices and screen sizes.
When you start with a Web Template Wizard, the Foundation framework is added to the
template, to guarantee just that; see "Creating a Web template with a Wizard" on page541.
Other approaches are described below, in "Adding a Web page" below.
Adding a Web page
When a Web template is created (see "Creating a Web template with a Wizard" on page541),
only one Web section is added to it. A Web context may contain various templates, but per
record only one of those can be used to generate output.
It is not possible to add a Web section to an existing Web context with the help of a Template
Wizard.
Page 547