CRS 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.
The CRS sitemap-generation components, which are found in the /atg/sitemaps/
Nucleus folder, include:
CategorySitemapGenerator
-- This component is of classatg.commerce.sitemap.CatalogSitemapGenerator
, which is a subclass ofatg.sitemap.DynamicSitemapGenerator
for use with custom catalogs. With custom catalogs, the default parent category for a product can differ depending on the catalog assigned to a user, so this class adds acontextCatalog
property for specifying the ID of the catalog to use for constructing URLs. TheCategorySitemapGenerator
component’scontextCatalog
property is set tomasterCatalog
, which is the ID of the top-level catalog in ATG Store.CategorySitemapGenerator
generates the entries in theSitemapRepository
that are used to create thecategorySitemap.xml
file.ProductSitemapGenerator
-- This component is also of classatg.commerce.sitemap.CatalogSitemapGenerator
, and itscategoryContext
property is set tomasterCatalog
.ProductSitemapGenerator
generates the entries in theSitemapRepository
that are used to create theproductSitemap.xml
file.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.