Posted on 07/08/2024 12:37:25
Hi Christoffer
It is just there. In the screenshot above, a page is named Sitemap.xml and has that name in "Use in URL" field on the page properties. If there is a page with a URL that exists, Dynamicweb will not serve what else should be on that url.
So if you rename the "Use in URL" field of your page to "sitemap-not-in-use.xml" or similar, Dynamicweb should start serving the auto generated sitemap.xml
On website settings, you can set a couple of checkboxes:
This will include a link to Sitemap.xml in robots.txt:
Pages will be in the auto generated sitemap if they are published and 'Show in sitemap' is enabled on the page:
To include product groups and products to the sitemap, Dynamicweb will use the URL settings of the product list page to include the correct structure as they are published on the website:
As you can see, there is also a setting to include variants in Sitemap.xml - I do not recommend enabling that - in some cases the sitemap can grow a lot, and it is usually the same content for all variants.
The above settings will create a sitemap like this: