Manage Sitemaps¶
Managing sitemaps includes:
- Adding new sitemaps to stores
- Adding sitemaps items
- Downloading sitemaps
- Exporting sitemaps to the store assets
To manage the store sitemaps:
- In the main menu, click Stores.
- From the list of stores, click the store you need to manage sitemaps for.
- In the next blade, click the Sitemaps widget.
- In the next Sitemaps blade, you will see a list of sitemaps to be included into the sitemap index file.
Add new sitemap to store¶
To add a new sitemap:
- Click Add in the toolbar.
-
Fill in the following fields:
-
Click Create to save the changes.
The example below involves three sitemap locations for different types of pages. The sitemap item locations are determined using language-culture slugs.
Add sitemap items¶
To add sitemap items:
- Select a sitemap from the list.
- In the next blade, click the Add items in the toolbar.
-
Select the items to be added to the sitemap:
-
Click Save to save the changes.
Download sitemaps¶
After creating your sitemap, you can download a ZIP package containing your sitemap(s) in order to view what it includes:
-
Click Download sitemaps in the top toolbar.
-
In the new window, enter base URL for sitemaps and confirm your action.
The ZIP package you have downloaded contains the sitemap.xml file with the sitemap locations (see the example above) and the sitemap item XML files:
Each sitemap item file includes the corresponding URL with a specific language culture:
Export sitemaps to store assets¶
You can export sitemaps:
Manual export¶
To export sitemaps to store assets manually:
- Click Stores in the main menu.
- In the next blade, select your store.
- In the next blade, click on the Sitemaps widget.
- In the next blade, click Export to store assets in the toolbar.
- Confirm your action.
- Monitor the export progress in the next blade.
- Once complete, click on the Assets widget in your store details blade to verify the sitemaps.
You can see that the sitemaps have been added to the store assets. Now, you can download them or send links to them to other users.
Automated export¶
Automated export simplifies the process by using a scheduled job. By default, it is disabled and requires activation at both the global and store levels:
-
Enable in the Store module:
- Click Stores in the main menu.
- In the next blade, select your store.
- In the next blade, click on the settings widget.
- In the next blade, find the "Export to assets" feature and enable it.
- Click OK to save the changes.
-
Enable via the settings and configure export schedule:
- Click Settings in the main menu.
- In the next blade, type Sitemaps to find the settings related to the module.
- Click Enable export sitemap files by job.
- In the next blade, switch the Export sitemap files by job option to on.
- Set the cron expression to "0 0 * * *" to export sitemaps to store assets daily at 00:00.
- Click Save in the toolbar to save the changes.
With automated export enabled, sitemaps will be regularly updated and saved to store assets, ensuring they're always up-to-date and accessible.