customization in Apache Sling sitemap not Working | Community
Skip to main content
djohn98390536
Level 4
October 31, 2023

customization in Apache Sling sitemap not Working

  • October 31, 2023
  • 4 replies
  • 1822 views

Following below few blogs working as expected with OOTB but when trying to customize the attribute not working as expected.

 

https://www.theaemmaven.com/post/aem-apache-sling-sitemap

https://aemsimplifiedbynikhil.wordpress.com/2021/12/01/extending-the-apache-sling-sitemap-generator-for-aem-6-5-11-and-aemaacs/

 

I am using the AEM 6.5 with Serivce pack 6.5.12.0.

Kindly please let me know what I am missing any kind of configuration missing plz help here.

 

 

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

4 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 31, 2023

Can you elaborate on what you mean by 'the attributes do not work as expected'? I have followed this resource in the past, and everything was okay: https://www.theaemmaven.com/post/aem-apache-sling-sitemap. Please take the time to carefully read the notes and disclaimers provided in the article.

Esteban Bustamante
djohn98390536
Level 4
November 1, 2023

Hi @estebanbustamante 

for customization used the below code but it still its not calling the extended one it is calling the OOTB one

 

url.setLastModified(lastmod.toInstant());(displaying)
url.setPriority(2);(not displaying)

When i check error.log  no info i can get related to this extended class.

djohn98390536
Level 4
November 1, 2023

The article I shared clearly indicates that you must add a higher ranking number so your new sitemap takes precedence over the OOTB. Please read carefully the resources provided in this thread and review your implementation.

 


Hi @estebanbustamante I removed the ranking and added in Include Generators correct me if this is the correct way of doing it.

 

Jagadeesh_Prakash
Community Advisor
Community Advisor
October 31, 2023

@djohn98390536  how did you do the customisation seems you are missing some thing. I tried this in local and it was working fine 

djohn98390536
Level 4
November 1, 2023

Hi @jagadeesh_prakash 

for customization used the below code but it still its not calling the extended one it is calling the OOTB one

 

url.setLastModified(lastmod.toInstant());(displaying)
url.setPriority(2);(not displaying)

When i check error.log  no info i can get related to this extended class.

arunpatidar
Community Advisor
Community Advisor
October 31, 2023
kautuk_sahni
Community Manager
Community Manager
November 1, 2023

@djohn98390536 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
djohn98390536
Level 4
November 1, 2023

Hi @kautuk_sahni issue is still there .If you can provide some info that will be helpful

 

Thanks