galumphing

 

This folder contains examples of more advanced template system usage.

You can embed navigation links either in the template page in the content. If you insert the following line into your HTML source:

<div id="template_navigation_ancestors_horizontal"></div>

This is the result, often called a "breadcrumb trail":

Home » Software » Web Tools » Template System » Tutorial » Advanced

The names are determined by looking up the folder hierarchy towards the root of your site and taking the page titles of any default.* or index.* files found. (If there's more than one such file in a single folder, you'll be notified of the problem when you apply templates.)

The page title means the content of the <title> element, unless you've defined a <meta name="DC.Title"> to override it. The <title> often includes redundant information such as the site name, for the benefit of users who save the page in their bookmarks or favorites, so for navigation purposes you often want to override it with a shorter version.

Here's another format for the breadcrumb trial:

<div id="template_navigation_ancestors_outline"></div>

And here are some variants of the list of child pages:

<div id="template_navigation_children_topicslist"></div>
<div id="template_navigation_children_icons"></div>
<div id="template_navigation_children_blockquote"></div>
<div id="template_navigation_children_topicsblockquote"></div>
<div id="template_navigation_children_list"></div>

Why have both "list" and "topicslist", or "blockquote" and "topicsblockquote", when you could just place the word "Topics:" before the whole thing and be done with it, you ask? Because it would look weird if the list turned out to be empty. If there are no child pages, the "topics" variants don't print anything at all.