This is a fresh install of XML Sitemap on a fairly new Drupal 7 site. After install XML Sitemap, the module seems to work as expected, except to add pages to the sitemap.
I first visit admin/config/search/xmlsitemap/settings and set the content types that I want to be included in the sitemap with default priority. I do the same for my Menu Links I want included.
I then save the configuration and go back to the "list" of sitemaps. Finally, I run cron to generate the new sitemap. At this point, on admin/config/search/xmlsitemap, I see my default sitemap, /sitemap.xml. Under Links, I see 19, but under pages, I only see 1. This is consistent when I actually open the sitemap to view it (I only see 1 url in the sitemap).
No amount of rebuilding the links or editing and re-saving the configuration, or running cron seems to fix this issue.
Finally, I've tried completely disabling and then uninstalling the XML Sitemap files, and then enabling and configuring them again, which also has not resolved the issue.
Comment | File | Size | Author |
---|---|---|---|
#6 | xml_sitemap_cap0.PNG | 6.61 KB | mjt772 |
#6 | xml_sitemap_cap1.PNG | 8.92 KB | mjt772 |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedYou need to visit the administration of each content type. There is a fieldset in each of those for xmlsitemap.
Comment #2
DavidWhite CreditAttribution: DavidWhite commentedI can confirm that this has been done. For example, if I visit admin/structure/types/manage/page for my Page content type, I can confirm it is set to be included in the sitemap.
Comment #3
DavidWhite CreditAttribution: DavidWhite commentedFor further information & additional troubleshooting steps taken:
Comment #4
patrick5668 CreditAttribution: patrick5668 commentedI have the same problem, could it have anything to do with clean Url's?
I can not create clean url's on the server aswell.
Did you find a for it fix jet?
Comment #5
patrick5668 CreditAttribution: patrick5668 commentedHave done some testing and it looks like the content type pages are defined as a link instead of a page.
When I only include a content type page and no menu links, I get to see only Url's instead of pages.
When I include the main_menu, the Url count add's the menu links, but still no pages.
Comment #6
mjt772 CreditAttribution: mjt772 commentedI think I've had the same question/situation as the OP (screenshot 0), but I now suspect that everything is fine, and that this is just a matter of awkward verbiage. Note the help text (screenshot 1) from the settings page. I think that "pages", within the context of this module, refers to XML sitemap pages (i.e., XML files containing up to 50,000 links each), not to the website's pages/nodes/entities/etc. I should therefore expect to only see 1 page listed in my XML sitemap until such time as my site contains more than 50,000 links.
Update: I've successfully tested this hypothesis by manually changing "Number of links in each sitemap page" to 100 instead of "automatic" and rebuilding the sitemap. As expected, my sitemap now lists 2 pages instead of 1.
Comment #7
KoshaK CreditAttribution: KoshaK commentedThe same here... only One page and sitemap...
Comment #8
425Media CreditAttribution: 425Media commentedHas anyone found a solution to this issue? I have a number of sites that have multiple links, but only one page listed.
Comment #9
cpollinger CreditAttribution: cpollinger commentedI am having the same issue. Anyone find any solutions?
Comment #10
425Media CreditAttribution: 425Media as a volunteer commentedI am still having this issue on one of my sites. Has anyone found a solution or workaround?
Comment #11
Rajeshreeputraxmlsitemap is now working on my site drupal 8 site.