Expand my Community achievements bar.

SOLVED

Sitemap for Multilingual Sites

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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

Avatar

Level 10

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