Hi guys. This issue has been bugging me days now and I just can't find any documentation or anything in the issue queue that pinpoints the configuration options needed to make this work but essentially, on a multisite project here, using Rebuild Links (at admin/config/search/xmlsitemap/rebuild) creates different and incorrect results depending on which domain was uses to Rebuild them?

I.E. / steps:
1. We have a great Domain Access driven multi-domain travel site - all working fine bar the Domain XML sitemaps.
2. The sites use full domains in the form thetravelsite.com (the default domain) and the regionalsites.com.
3. The default site has all the content listed (attached to it's own distinct menus).
4. The regional sites have their own distinct menus/content (as well as shared content)
5. We have created a distinct xml sitemap for each domain (at admin/config/search/xmlsitemap), BUT
6. Running Rebuild Links on any domain (by logging in to that domain) builds the correct links for that particular domain (but overrides the others incorrectly).
7. By logging into any other domain I can Rebuild the links correctly for that domain (but incorrectly adding links to the others).
8. The total number of links generated per domain various depending on which domain was used.
9. The number of links generated (as well as the links generated) is consistent every time - so can be replicated easily.
10. As it stands we can only generate one correct xml sitemap per Rebuild.

Modules used are all 7.x-2.2 but wander if Dave Reid's comment "If you use the same version (beta1 or dev) of this module as XML sitemap it should work just fine" still applies. The latest version of Domain XML Sitemap is still 7.x-1.0-beta2.

Otherwise, as far as I know, all settings are correct, but in the absence of any further configuration documentation I can't see any other settings/options anywhere that indicate we're doing anything wrong?

NB Given the above, can anyone confirm whether domain xml sitemaps should be working 'out of the box' like this or whether some more advanced arcanery needs applying?

Many thanks - in advance - to anyone can throw any light on this.

Q.

CommentFileSizeAuthor
#3 domain_xmlsitemap.module.patch1.64 KBbarthje
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nitebreed’s picture

Having the same issue... trying to find a solution for now, I'll let you know if I find something

quantos’s picture

Thanks Nitebreed. Let me know if I can help with any testing etc or if you do find something. Q.

barthje’s picture

I created a patch for the module that will make the cron work with an XML file per domain. It will loop through the domains, go through the Drupal bootstrap as if on that domain and then it will generate the xml sitemap for the specific domain.

This is only the cron, but you could copy the functionality and create a custom menu hook.

make sure you disable the xmlsitemap_cron if you run this patch.