Sitemap generator | Community
Skip to main content
mallikav9825481
February 6, 2018
Solved

Sitemap generator

  • February 6, 2018
  • 2 replies
  • 5606 views

Can anyone suggest the available sitemap generator plugins for AEM 6.3 ? We recently migrated to 6.3 and the custom build logic for sitemap generation is not working as expected.

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 kautuk_sahni

ACS provides a comprehensive coverage on sitemap.xml generation. It also takes care alias names (for multi lingual pages with local page names).

Sitemap Generator

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/wcm/impl/SiteMapServlet.java

OR

it is fairy easy if you want to generate a simple xml out of given hierarchy and exclude some of pages/directory. iterate all the pages recursively and Use Javax.xml API to generate XML. Make sure you have check to exclude list of pages.

One last thing, you should be creating sitemap.xml file under language page (e.g. en, fr).

In this whole process, i don't see point of creating followings:

  • Index.html page
  • Managing page properties checkbox to exclude a page from sitemap. Because that is overhead. Just OSGI configuration should be fine.
  • Robots.txt is different than sitemap. we should be creating robots.txt separately.

Source:- What are the best ways to implement a sitemap?

External article:- https://www.techaspect.com/blog/generating-sitemaps-using-adobe-experience-manager/

-Kautuk

2 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
February 7, 2018

ACS provides a comprehensive coverage on sitemap.xml generation. It also takes care alias names (for multi lingual pages with local page names).

Sitemap Generator

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/wcm/impl/SiteMapServlet.java

OR

it is fairy easy if you want to generate a simple xml out of given hierarchy and exclude some of pages/directory. iterate all the pages recursively and Use Javax.xml API to generate XML. Make sure you have check to exclude list of pages.

One last thing, you should be creating sitemap.xml file under language page (e.g. en, fr).

In this whole process, i don't see point of creating followings:

  • Index.html page
  • Managing page properties checkbox to exclude a page from sitemap. Because that is overhead. Just OSGI configuration should be fine.
  • Robots.txt is different than sitemap. we should be creating robots.txt separately.

Source:- What are the best ways to implement a sitemap?

External article:- https://www.techaspect.com/blog/generating-sitemaps-using-adobe-experience-manager/

-Kautuk

Kautuk Sahni
mallikav9825481
February 9, 2018

Thanks Kautuk, I will try this. For now I figured out the issue on why current logic not working and fixed. thanks again!!!