Exclude and include content types from the sitemap

Exclude a type from the sitemap from all sites

  1. Navigate to Administration » Settings » Advanced » Sitemap » Excluded Types.
  2. Click Create new.
  3. In Type Name, enter full name of the type you want to exclude.
    For example, enter Telerik.Sitefinity.News.Model.NewsItem
  4. When the type has child types, select Exclude Type Children, if you want to exclude the child types also.
    For example, if you have a hierarchical dynamic module and you want to exclude the child types as well.
  5. Save your changes.

RESULT: The above example excludes all news items from the sitemap, regardless of whether their Include in sitemap property is selected. They are excluded from all sites in a multisite environment.

Exclude a type from the sitemap for a particular site

PREREQUISITES: You must have generated the sitemap at least once.

  1. Navigate to Administration » Settings » Advanced » Sitemap.
  2. Expand SiteConfigs.
    All of the sites are listed with their IDs.
  3. Click the site where you want to exclude a type.
  4. Click Excluded Types.
  5. In Type Name, enter full name of the type you want to exclude.
    For example, enter Telerik.Sitefinity.News.Model.NewsItem
  6. When the type has child types, select Exclude Type Children, if you want to exclude the child types also.
    For example, if you have a hierarchical dynamic module and you want to exclude the child types as well.
  7. Save your changes.

Explicitly include a type in all sites

  1. Navigate to Administration » Settings » Advanced » Sitemap » Excluded Types.
  2. Click Create new.
  3. In Type Name, enter full name of the type you want to include.
    For example, enter Telerik.Sitefinity.News.Model.NewsItem
  4. Select Include Explicitly Type.
  5. Save your changes.

NOTE: You may want to include explicitly a type, if you have a type with many child types and you want to include only one. Then, it is faster to first exclude all of the child types of the type and then include only one.

Explicitly include a type in one particular site

  1. Navigate to Administration » Settings » Advanced » Sitemap.
  2. Expand SiteConfigs.
    All of the sites are listed with their IDs.
  3. Click the site where you want to include a type.
  4. Click Excluded Types.
  5. In Type Name, enter full name of the type you want to include.
    For example, enter Telerik.Sitefinity.News.Model.NewsItem
  6. Select Include Explicitly Type.
  7. Save your changes.

Was this article helpful?