Answer the question
In order to leave comments, you need to log in
`
How to implement ModX sitemap?
Hello!
This wrapper &tplWrapper does not work.
Made it like this
[[!pdoSitemap?
&tpl=`@INLINE <url>\n\t
<loc>[[+url]]</loc>\n\t
<lastmod>2019-07-31 19:24:54</lastmod>\n\t
<changefreq>[[+update]]</changefreq>\n\t
<priority>[[+priority]]</priority>\n
</url>`
&tplWrapper=`@INLINE <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"[[+schema]]\">\n[[+output]]\n</urlset>`
]]
Answer the question
In order to leave comments, you need to log in
And why are you displaying the standard wrapper in the call, then just call
[[!pdoSitemap? &checkPermissions=`list` &context=`web` &showHidden=`1`]]
- challenge will pull this wrapper
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question