Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

sitemap - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Wiki source code of sitemap

Last modified by bougault on 2023/09/15 15:50

Hide last authors
bougault 4.1 1 {{velocity}}
bougault 23.1 2 #if ($xcontext.action == "get")
bougault 24.1 3 $response.setContentType("text/xml")
bougault 38.5 4 #set ($query = $services.query.xwql("where doc.space like 'Collabs' or doc.space like 'Collabs.%' and doc.title <> ''"))
bougault 37.3 5 #set ($resources = $query.execute())
bougault 32.1 6 <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
bougault 36.12 7 #set($home = $xwiki.getDocument('Main.WebHome'))
bougault 36.2 8 <url>
9 <loc>$home.getExternalURL()</loc>
bougault 37.1 10 <lastmod>$xwiki.formatDate($home.contentUpdateDate, 'yyyy-MM-dd')</lastmod>
bougault 36.2 11 </url>
bougault 28.1 12 #foreach ($resource in $resources)
bougault 38.5 13 #set($page = $xwiki.getDocument($resource))
14 #if($page)
bougault 30.1 15 <url>
16 <loc>$page.getExternalURL()</loc>
17 <lastmod>$xwiki.formatDate($page.contentUpdateDate, 'yyyy-MM-dd')</lastmod>
18 </url>
bougault 38.5 19 #end
bougault 28.1 20 #end
bougault 32.1 21 </urlset>
bougault 24.1 22 #else
bougault 26.1 23 {{html}}<a href="$doc.getURL('get','outputSyntax=plain')">Generate Sitemap</a>{{/html}}
bougault 23.1 24 #end
bougault 4.1 25 {{/velocity}}