Sitemap Out of the box hreflang tag? | Community
Skip to main content
November 13, 2024
Solved

Sitemap Out of the box hreflang tag?

  • November 13, 2024
  • 2 replies
  • 1339 views

I am looking at the out of the box sitemap generator provided by AEM and have a request to add the hreflang attribute to the sitemap file. I have looked up the documentation on the sitemap generator and found nothing that says hreflang can be generated through the out of the box generator. But, a video that goes over sitemap generation found here: https://experienceleague.adobe.com/en/docs/experience-manager-learn/sites/seo/sitemaps @ 4:35 clearly shows the out of the box generator adding hreflang attribute to the sitemap.

 

Other posts on this forum indicate needing to implement a custom sitemap generator that adds the attribute but this video provided by adobe speaks otherwise. Can I get a defenitive answer on whether or not a custom sitemap generator is needed to add hreflang attribute to AEM's sitemap file? If it can what attributes on a page need to be defined to add that attribute during sitemap generation?

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 A_H_M_Imrul

Hello @jordanlongato,

I hope it’s not too late to respond.

If you follow the same content structure and page component type as the WKND project, you should be able to leverage the OOTB sitemap generator to include the hreflang attribute. However, if you need to add additional attributes, it appears a custom implementation would be required.   

I recommend generating the sitemap locally using the WKND project to gain a better understanding of how it works.

Thanks!

2 replies

Aditya_Chabuku
Community Advisor
Community Advisor
November 23, 2024

Hi @jordanlongato ,

 

Did you found solution for this problem, If not, try this solution given here. 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/generating-xml-sitemaps-with-hreflang-tags/m-p/190570 

Thanks,Aditya Chabuku
A_H_M_Imrul
Community Advisor
A_H_M_ImrulCommunity AdvisorAccepted solution
Community Advisor
November 25, 2024

Hello @jordanlongato,

I hope it’s not too late to respond.

If you follow the same content structure and page component type as the WKND project, you should be able to leverage the OOTB sitemap generator to include the hreflang attribute. However, if you need to add additional attributes, it appears a custom implementation would be required.   

I recommend generating the sitemap locally using the WKND project to gain a better understanding of how it works.

Thanks!