Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Sitemap compatible with multi-language site using Transcribe

Support (Resolved)

sparkuk
sparkuk

Just wondered what the best way to manage xml site map for multi-language sites.

For example we are using Transcribe module to have pages and entries at:
domain.com/en/english-channel-name/english-entry and then
domain.com/fr/french-channel-name/french-entry

What is the best way to include the various language sites within the sitemap please?

Diadyo
# 1
Diadyo

We are also interested in this. Is there a work around? Can we create multiple site maps - or include a {language_code} tag for example?

PutYourLightsOn
# 2
Developer
PutYourLightsOn

the Sitemap Module will only create one URL per entry so there is no way to get it to output multiple URL’s for a single entry. if each page has its own entry then it would be doable.

betamac
# 3
betamac

We are using the Transcribe module as well, but with language prefixes.

Each language has its own page/entry that can be associated with its translations, however their URLs are identical except for the prefix:
For example:
English:  www.domain.com/home
Spanish: es.domain.com/home
Chinese: zh.domain.com/home

Now the problem is that the sitemap shows the same URL three times, each starting with www. (instead of www., es., and zh.) but with different modification dates.  I used the [page_url]  tag in the Sitemap URL field.

Is there a way to solve this and to either include the language prefixes in the sitemap output or to only show the English entries in the sitemap?

PutYourLightsOn
# 4
Developer
PutYourLightsOn

responding in this thread