Did this article resolve your question/issue?



Add <lastmod> tag to every entry in the Sitemap

« Go Back


TitleAdd <lastmod> tag to every entry in the Sitemap
URL Nameadd-lastmod-tag-to-every-entry-in-the-sitemap
Article Number000111387
EnvironmentProduct: Sitefinity
Version: 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x, 12.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
How to add a <lastmod> tag to every entry in the Sitemap so that the last modified date of the items is included?
How to include the lastmod attribute included in the generated Sitemap?
How to manage site content with the corresponding LastModified date for the corresponding page (content item)

When a new SitemapEntry for every content item is added the LastModified property of the SitemapEntry object doesn’t work using the Before_Writing(ISitemapGeneratorBeforeWriting) event
The LastModified property of the SitemapEntry object does not work when the "ISitemapGeneratorBeforeWriting event" is used
The LastModified property of sitemap entries in the Before_Writing() event does not add a <lastmod> tag to the sitemap for managing site content
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
In the current product, the class (and methods) used to generate the XML structure of the sitemap is not extendable. The methods that generate the sitemap XML nodes are private methods, and the entire StandardSitemapGenerator, ISitemapGenerator class is not used in such a way that the entire class can be replaced. It is not exposed and therefore not used through the DI container.

To date, two requests for this feature have been submitted as an Idea on the Progress Sitefinity Community. Weigh-in with your suggestions and promote the Idea to assist with prioritisation during review by selecting the following links:
Add <lastmod> tag to Sitefinity sitemap   

Ability to add columns PublicationDate, LastModified and LastModifiedBy for pages backend list view  

Customer feedback is valuable and feature requests are monitored by our Product Management team. Feature requests are reviewed during the planning phase of each new product release and a list of the enhancements chosen for implementation can be found in the Release Notes documents that accompany each release.
Last Modified Date7/10/2020 2:53 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.