[FEATURE] Add properties changefreq and priority to XML sitemap entries
[Packages/TYPO3.CMS.git] / typo3 / sysext / seo / Resources / Private / Templates / XmlSitemap / Sitemap.xml
1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="{xslFile}"?>
2
3 <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
4 <f:for each="{items}" as="item">
5 <f:if condition="{item.loc}">
6 <url>
7 <loc>{item.loc}</loc>
8 <lastmod>{item.lastMod -> f:format.date(format: 'c')}</lastmod>
9 <f:if condition="{item.changefreq}">
10 <changefreq>{item.changefreq}</changefreq>
11 </f:if>
12 <priority>{item.priority}</priority>
13 </url>
14 </f:if>
15 </f:for>
16 </urlset>