Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
4.1 | 1 | {{velocity}} |
| |
23.1 | 2 | #if ($xcontext.action == "get") |
| |
24.1 | 3 | $response.setContentType("text/xml") |
| |
38.5 | 4 | #set ($query = $services.query.xwql("where doc.space like 'Collabs' or doc.space like 'Collabs.%' and doc.title <> ''")) |
| |
37.3 | 5 | #set ($resources = $query.execute()) |
| |
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"> |
| |
36.12 | 7 | #set($home = $xwiki.getDocument('Main.WebHome')) |
| |
36.2 | 8 | <url> |
| 9 | <loc>$home.getExternalURL()</loc> | ||
| |
37.1 | 10 | <lastmod>$xwiki.formatDate($home.contentUpdateDate, 'yyyy-MM-dd')</lastmod> |
| |
36.2 | 11 | </url> |
| |
28.1 | 12 | #foreach ($resource in $resources) |
| |
38.5 | 13 | #set($page = $xwiki.getDocument($resource)) |
| 14 | #if($page) | ||
| |
30.1 | 15 | <url> |
| 16 | <loc>$page.getExternalURL()</loc> | ||
| 17 | <lastmod>$xwiki.formatDate($page.contentUpdateDate, 'yyyy-MM-dd')</lastmod> | ||
| 18 | </url> | ||
| |
38.5 | 19 | #end |
| |
28.1 | 20 | #end |
| |
32.1 | 21 | </urlset> |
| |
24.1 | 22 | #else |
| |
26.1 | 23 | {{html}}<a href="$doc.getURL('get','outputSyntax=plain')">Generate Sitemap</a>{{/html}} |
| |
23.1 | 24 | #end |
| |
4.1 | 25 | {{/velocity}} |