Sitemap for multi domain


I’m using MODX for multi domain. So one CMS serving multiple domains.
For all websites, I want to have a sitemap.xml but when I use the GoogleSiteMap plugin, I see the same sitemap on the second domain.

Step to reproduce

Install multi domain on your MODX install.
Install GoogleSiteMap plugin
Add a page calles sidemap, use a empty page, make it xml
In the content field add [[!GoogleSiteMap]]

Observed behavior contains the same content from

Expected behavior show pages from domain1 show pages from domain2


MODX Revolution 2.7.1-pl

1 Like

Try to use the following call:

[[GoogleSiteMap? &context=`[[*context_key]]`]]


If you don’t necessarily want to use the extra and don’t have too frequently sites added, you could also use an online sitemap generator like this one.

1 Like

It works, thank you Jako! Danke schön. Please YJ Tso & Garry Nutting, can you add this in the documentation of the plugin?

1 Like

It looks like a known issue, that is somehow forgotten:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.