google sitemap

Alex Koshel asked on January 20, 2025 10:30

I'm trying to implement a Google Site Map based on the template https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap. I use the standard web part GoogleSitemap_XMLSitemap. I specified the path to the desired folder, selected the desired page type. Transformation type: ASCX <%# Eval("PostUrl")%> and <%# Eval("Title")%> are not displayed although they are in the pagetype. What could it be? And how to get the page property of the Publish from type?

Recent Answers


Alex Koshel answered on January 20, 2025 10:54 (last edited on January 21, 2025 06:12)

My Transformation

< url >
< loc >< %# Eval("PostUrl")% >< /loc >
< news:news>
< news:publication>
< news:name>The Example Times</news:name>
< news:languag e>en< /news:language >
< /news:publication >
< news:publication_date >2008-12-23< /news:publication_date >
< news:title >< %# Eval("Title")% >< /news:title >
< /news:news >
< /url >
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.