Sitemap for Multilingual Sites | Community
Skip to main content
Level 5
October 16, 2015
Solved

Sitemap for Multilingual Sites

  • October 16, 2015
  • 2 replies
  • 1776 views

Hi,

I have created a scheduler to create a sitemap for my site (taken the reference from acs-commons). Attached is what is the input for scheduler via OSGi console. Here it takes the root path of page ans generate sitemap.xml under /content.

Question is this will be for one locale, what will be the case of multiple locale, Shall I need to create multiple sitemap.xml and need to configure my OSGi properties to add multiple rootpath for each locale. 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

Hi,

I'm not sure why you need a scheduler for this when ACS AEM Commons includes a way to handle through requests, but...

Yes, if you are hosting multiple sites in AEM, you will likely need to add support for generating multiple sitemaps to your component. One way to do this is by using OSGi factory components which enables you to create multiple instances of a component, each with its own configuration. There are a number of examples of the component factory pattern in ACS AEM Commons (including the sitemap servlet as different sites would presumably have a different externalizer domain).

Regards,

Justin

2 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

I'm not sure why you need a scheduler for this when ACS AEM Commons includes a way to handle through requests, but...

Yes, if you are hosting multiple sites in AEM, you will likely need to add support for generating multiple sitemaps to your component. One way to do this is by using OSGi factory components which enables you to create multiple instances of a component, each with its own configuration. There are a number of examples of the component factory pattern in ACS AEM Commons (including the sitemap servlet as different sites would presumably have a different externalizer domain).

Regards,

Justin

smacdonald2008
Level 10
October 16, 2015

I have asked that the Eng member whom wrote this please respond to this.