Commerce Reference Store includes components for creating sitemaps to help web spiders access site pages. These components create a sitemap index file named siteindex.xml
with references to three sitemap files:
categorySitemap.xml
is the sitemap for category pages.productSitemap.xml
is the sitemap for product detail pages.staticSitemap.xml
is the sitemap for static pages, such as the About Us page.
To generate categorySitemap.xml
and productSitemap.xml
, Commerce Reference Store includes two components of class atg.commerce.sitemap.CatalogSitemapGenerator
, /atg/sitemap/CategorySitemapGenerator
and /atg/sitemap/ProductSitemapGenerator
. (CatalogSitemapGenerator
is a subclass of atg.sitemap.DynamicSitemapGenerator
that adds logic for determining the catalog to use for a site.) CategorySitemapGenerator
generates the entries in the SitemapRepository
that are used to create the categorySitemap.xml
file. ProductSitemapGenerator
generates the entries in the SitemapRepository
that are used to create the productSitemap.xml
file.
In addition to the CatalogSitemapGenerator
components, Commerce Reference Store includes the following sitemap-generation components, which are also found in the /atg/sitemap/
Nucleus folder:
StaticSitemapGenerator
-- This component is of classatg.sitemap.StaticSitemapGenerator
. It generates the entries in theSitemapRepository
that are used to create thestaticSitemap.xml
file.SitemapIndexGenerator
-- This component is of classatg.sitemap.SitemapIndexGenerator
. It generates the entries in theSitemapRepository
that are used to create thesiteindex.xml
file.SitemapGeneratorService
-- This component is of classatg.sitemap.SitemapGeneratorService
. It manages the process of scheduling and invoking the sitemap generator components.SitemapWriterService
-- This component is of classatg.sitemap.SitemapWriterService
. It writes out the entries from theSitemapRepository
to create the sitemap and sitemap index XML files.