Orchard Core CMS has a Sitemaps Feature to help you improve search engine optimization (SEO) by generating sitemaps for your website. The Sitemaps Feature is extensible and comes with a built-in sitemap source that generates a sitemap based on existing content types. If you're familiar with the Advanced Sitemap Module for Orchard CMS 1.x, the Sitemap Content Types source is very similar.
Sitemaps Feature in Orchard Core CMS
Sitemaps is typically disabled by default, so you may need to enable it manually. Login to the Administrative Dashboard and choose
Features to see a list of all features available to your Orchard Core CMS website. Filter the list by typing in "Sitemaps" and the Sitemaps Feature should appear in the filtered list. Click
Enable to activate the Sitemaps Feature.
Once you enable the feature you should see a new
SEO menu option under
Configuration. Within the
SEO dropdown menu option there will be 3 additional menu options: Sitemaps, Sitemap Indexes, Sitemaps Cache.
Create a Sitemap in Orchard Core CMS
In this tutorial we will focus on creating our first sitemap for Orchard Core CMS using the built-in sitemap source, Sitemap Content Types.
When you choose the
Sitemaps menu for the first time there won't be any sitemaps. You will need to create one using the available sitemap sources. However, you can create as many sitemaps as you wish, and each sitemap can use one of more sitemap sources.
Let's create one sitemap, called Sitemap, using one source, the Sitemap Content Types Source. Click the
Add Sitemap button to create your first sitemap in Orchard Core CMS. When you click
Add Sitemap you will be asked to specify a name for the sitemap and a URL. Enter "Sitemap" for the name, leave the URL blank, and click
Save. The URL generated, sitemap.xml, will be based on the name.
Sitemap Content Types Source in Orchard Core CMS
Once you create the sitemap you will need to add a sitemap source. Click on the name of the sitemap, Sitemap, and click the button
Add Source. A dialog will display with at least 1 built-in sitemap source, Sitemap Content Types. Click
You can select individual or all content types to include in the sitemap. Specify a Change Frequency and Priority and click
Create to add the sitemap source to your sitemap.
You have now created your first sitemap in Orchard Core CMS using the built-in Sitemap Content Types Source. You can now view the sitemap as well as edit the Sitemap Content Types source to select only specific content types as well as specify the Change Frequency and Priority for individual content types.
Custom Sitemap Sources in Orchard Core CMS
As Orchard Core Developers we're really excited that the new Sitemaps Feature in Orchard Core CMS is extensible. In addition to the built-in Sitemap Content Types source, we can develop additional custom sitemap sources as well!