Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

how to implement sitemap with custom attributes?

Avatar

Community Advisor and Adobe Champion

Hi,

 

I am trying to customise the AEM's OOTB sitemap by creating new service by extending the ResourceTreeSiteMapGenerator. I followed this blog. But whenever i am trying to access the lcalhost:4802/content/we-retail/us.sitemap.xml It is giving error.

MayurSatav_0-1661510089379.png

I checked logs also but no log is getting generated for my extended MySitemapGenerator.java file. I tried creating separate log for core but there also it showing this only

26.08.2022 13:49:11.354 *INFO* [Background Update com.mysite.assets.aem.my-site-bundle (647)] com.mysite.assets.aem.my-site-bundle Service [com.ringcentral.www.aem.support.service.impl.MySitemapGenerator,8986, [org.apache.sling.sitemap.spi.generator.SitemapGenerator]] ServiceEvent REGISTERED

 

Anyone knows how we can implement sitemap in AEM so that we can able to add custom attributes?

 

Thanks

 

5 Antworten

Avatar

Community Advisor

Avatar

Community Advisor and Adobe Champion

Hi @arunpatidar ,

 

I tried both and it is same. But those are also not working 

 

Avatar

Community Advisor

Can you check if you have sitemap at /var/sitemaps

check if you are trying to generate on demand

arunpatidar_0-1661521848850.png

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor and Adobe Champion

I checked there is no sitemaps under /var/

MayurSatav_0-1661536258896.png

 

Avatar

Community Advisor

Check this PR to enable sitemap

https://github.com/arunpatidar02/aemaacs-aemlab/pull/22/files 

Arun Patidar

AEM LinksLinkedIn