`How to implement ModX sitemap?
R
R
RushV2019-07-31 19:24:54
MODX
RushV, 2019-07-31 19:24:54

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>`
]]

And it doesn't work.
5d41c0c9a45ea605316104.jpeg
Maybe I didn't do it right. How correctly to implement all this conclusion?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexey Golyagin, 2019-07-31
@webrevenue

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 question

Ask a Question

731 491 924 answers to any question