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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?