template contains some navigation elements, a style-sheet
link, and an area where different views can be displayed. Every
view file in a DataWeb web can use a template. If
you've specified that a particular view should use a template, then the view appears nested inside the template's
framework when the view is displayed in the browser.
you create a DataWeb web, you're prompted to make some
choices about how you want your web to look. Based on your choices, the
Designer automatically builds a basic template
for your web, named template.view (located in the Themes folder).
template includes a special tag which tells the DataWeb
server where views should be inserted into the template. This tag, the <ws:include>
tag, has a src
attribute, but you don't need to specify a value for this
tag within a template. The template also contains
a link to a style sheet file (default.css) which determines
how information in the template is formatted.
you want to use your own HTML design in a template,
you can create your own template by converting
an HTML file or by building one from scratch.
the Template for a View
specify that a view should appear within a template,
open that view in the DataWeb Designer. Select the Page
Region and change the Template property to refer to your template, which
must be a file within your web. For example, to display
a view within the template.view that's in the Themes folder of your
web, set the Template property to "/Themes/template.view".
Note that you don't need to include the quotation marks.
web can contain more than one template. For example,
an online department store might use templates with
different color schemes for each department. You can
have as many templates as you like in a web. To make
it easy to set each view's Template property, put your templates in the web's
can modify a template in the same way that you modify
any other view file - just click on it in the Designer
and insert HTML or edit the source for the page. To get
the most out of a template, read about customizing