Advertisement
in-touch

sitemap.xml 2.6.1-pl

Mar 30th, 2018
1,074
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="[[++modx_charset]]"?>
  2. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3. [[pdoSitemap?
  4.     &scheme=`uri`
  5.     &showHidden=`1`
  6.     &forceXML=`0`
  7.     &where=`{ "searchable":true, "parent:!=":23 }`
  8.     &tpl=`@INLINE<url>
  9.         <loc>{$_modx->config.site_url}{$url}</loc>
  10.         <lastmod>{$date}</lastmod>
  11.         <changefreq>{$update}</changefreq>
  12.         <priority>{$priority}</priority>
  13.     </url>`
  14.     &tplWrapper=`@INLINE {$output}`
  15. ]]
  16. [[pdoSitemap?
  17.     &scheme=`uri`
  18.     &parents=`23`
  19.     &showHidden=`1`
  20.     &forceXML=`0`
  21.     &tpl=`@INLINE<url>
  22.         <loc>{$_modx->config.site_url}{$url}</loc>
  23.         <lastmod>{$date}</lastmod>
  24.         <changefreq>{$update}</changefreq>
  25.         <priority>{$priority}</priority>
  26.     </url>`
  27.     &tplWrapper=`@INLINE {$output}`
  28. ]]
  29. [[!pdoResources?
  30.     &parents=`23`
  31.     &limit=`0`
  32.     &tpl=`@INLINE {$_modx->runSnippet('!pdoSitemap', [
  33.         'scheme' => 'uri',
  34.         'showHidden' => 1,
  35.         'forceXML' => 0,
  36.         'where' => '{ "searchable":true, "parent:=":30 }',
  37.         'tpl' => '@INLINE<url>
  38.             <loc>{$_modx->config.site_url}###city###/{$url}</loc>
  39.             <lastmod>{$date}</lastmod>
  40.             <changefreq>{$update}</changefreq>
  41.             <priority>{$priority}</priority>
  42.         </url>'
  43.         'tplWrapper' => '@INLINE {$output}'
  44.     ]) | replace : "###city###" : '[[+alias]]'}`
  45. ]]
  46. </urlset>
Advertisement
RAW Paste Data Copied
Advertisement