Generate a Sitefinity CMS sitemap using the API

This article provides a sample on how to generate Sitefinity sitemap using the API.

To generate sitemap for a specific site retrieving the site by its name.
The following code snippet uses MultisiteModule API to retrieve the current site:

The second method loops trough all sites and to generate sitemap for all sites.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?