The template configuration file is an XML file that defines the format of pages and links created by the Sitemap Generator.
To run the Sitemap Generator, you must specify a template file.
You can do this by setting the
<TEMPLATE_FILE>
tag in the main configuration
file. Two sample templates are provided in the
sitemap_generator\conf
directory:
File name |
Description |
---|---|
|
This file is used to create Sitemap protocol XML pages. See http://www.sitemaps.org/ for more details. NoteGoogle, Yahoo, Microsoft, and Ask.com have agreed to support this Sitemap protocol.
|
|
This file is used to create simple HTML sitemap pages. These pages include the appropriate "robots" meta tags that allow most spiders to successfully crawl these pages. |
The table below lists the standard elements of a template configuration file:
XML Element |
Usage |
---|---|
|
Specifies the link format in the index file. |
|
Specifies the link format used in record detail pages. |
|
Specifies the link format used in navigation pages. |
|
Specifies the link format used in search term pages. |
|
Specifies the link format used in static pages. |
|
Specifies the header used in the index file. |
|
Specifies the footer used in the index file. |
|
Specifies the header used in the record detail, navigation, search terms, and static pages files. |
|
Specifies the footer that is used in the record detail, navigation, search terms, and static pages files. |
The Sitemap Generator uses the contents of the above elements to
create pages. For example, to create a record detail page, the Sitemap
Generator uses the
PAGE_HEADER
,
DETAIL_LINK
, and
PAGE_FOOTER
XML elements.
Note
If you have the
CanonicalLinkBuilder
enabled in your Assembler
Application, your
DETAIL_LINK
,
NAVIGATION_LINK
, and
SEARCH_TERM_LINK
templates should include only
those URL parameters specified in the
<bean
class="com.endeca.infront.navigation.url.event.CanonicalLinkBuilder">
bean in the Assembler context file.