WebTemplate Nodes

The WebTemplate Database is a tree structure of Nodes. The pages and content of a WebTemplate website are stored in this tree structure. WebTemplate Tags can be used within templates to display content from the tree.

Each node in the tree is of a particular Node Type.  A Node Type defines a collection of Attributes which nodes of that Node Type will posess. For example, nodes of Node Type "Contact" have the Attributes "First Name", "Last Name", "Email Address".

Viewing the WebTemplate Tree

You can see the tree structure by using "Node Browser". Node Browser can be found in the Tools section of The Office.

Viewing Node Types

You can see and define the different types of Nodes by using "Node Types". Node Types can also be found in the Tools section of The Office.

Templates can query the WebTemplate database using the <wt:node> and <wt:list> tags.

<wt:node> is used to display the content of a single node.

<wt:list> is used to display a list of nodes.

An Example: The following will display the first and last names of all contacts:

<ul>
  <wt:list type="Contact" source="/Contacts">
    <li>[wt:First Name]</li>
  </wt:list>
</ul>

In the above example, <wt:list> tells the template to display a list of nodes. The "type" attribute tells the template the list is of nodes of Node Type "Contact". The "source" attribute tells the template to retrieve nodes from the "/Contacts" branch of the WebTemplate database.