Hello,
I@m a ModX newbie loving the ease of use of the ModX system. I’m currently building an XML Sitemap based around the tutorial at:
http://rtfm.modx.com/display/ADDON/getResources.Google+XML+Sitemap
In my XML Sitemap document I have the following code, and everything is outputting as it should be.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
[[!getResources?
&parents=`0`
&tpl=`XMLSitemapTPL`
&limit=`500`
&sortdir=`DESC`
&includeTVs=`1`
&includeContent=`1`
&processTVs=`1`
&depth=`10`
&sortbyTV=`sitemappriority`
]]
</urlset>
Naturally, I want to exclude some documents from the Sitemap (such as error pages, etc). I have created another TV called ’sitemapexclude’ with the following properties: Output Type Text - Include==1||Exclude==0
I then tried to insert the dollowing into the code:
&tvFilters=`sitemapexclude==Include'
The sitemap then outputs a blank sitemap with nothing between the <urlset></urlset> tags.
Am I doing something wrong here?? I’v searched these forums and Google for an answer but cant seem to find one!
Regards
Craig
Help Appreciated!