Search these areas:
Support Forums
Product Info

DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
-Understanding Templates
-Customizing Templates
Data Analysis
Object Model
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
New Responsive UI Module

DataWeb Help
Support Forums
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

Understanding Templates
A 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.

Creating a Template

When 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).

The 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.

If 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.

Setting the Template for a View

To 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.

A 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 root folder.

Modifying a Template

You 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 templates.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us