I am using xmlsitemap. It seems that views I have are not declared in sitemap.xml, even when they have a page display. Can any one explain why is that, should it be fixed and what would be the best way to do it?

Comments

dave reid’s picture

Quick note to begin, the best place to ask would be as a support request in the XML sitemap issue queue.

It depends on which version of XML sitemap you are using. If you are using the 1.x version of XML sitemap, then you are out of luck. If you are using the 2.x version, there are two different ways that you can add views:
1. Enable the XML sitemap menu sub-module, create a new menu called xmlsitemap, and in your views, add them to this hidden menu.
2. Enable the XML sitemap custom sub-module, and manually add your views paths at admin/settings/xmlsitemap/custom.

There is an existing issue for adding views to XML sitemap data (#[499670]), but it's a tough thing because there are lots of views that need arguments (like taxonomy views). Because there's no current way to get a list of all the possible paths for a specific view, we can't add it to the sitemap data.