I am needing to filter out two document ids, so they don’t show in the sitemap (not an xml Google sitemap). Here is my Ditto call so far: [!Ditto? &startID=’1’ &depth=`2` &orderBy=`ASC` &tpl=`staticSitemap`!]. Can someone please tell me how I can do the filter thing? Thanks in advance.
Try this:
&filter=`id,13,2|id,23,2`
Change 13 and 23 to the IDs of your two docs.
Thanks, I have just tried that, BobRay, and it removed one id link from the sitemap, but not the other. Anyway here is my updated Ditto call: [!Ditto? &startID=’1’ &depth=`2` &orderBy=`ASC` &tpl=`staticSitemap` &filter=’id,9,2|id,13,2’!]. The 404 error page (id = 13) is the one, that is currently not displaying in the sitemap, but the Services page (id = 9), is the one that I having trouble removing. The Services page has the "Show in Menu" unchecked, and it is a container, if that makes any difference. Also my Google sitemap is displaying as a link in the normal sitemap, and I would like to remove that as well, in id for that is 14.
Can someone please help me with all of the above?
Use back-ticks, not single quotes, around the parameters.
&filter=`id,9,2|id,13,2|id,14,2` '!]