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
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.
Views
Replies
Total Likes
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.
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.
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.
@djohn98390536 how did you do the customisation seems you are missing some thing. I tried this in local and it was working fine
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.
Hi,
I have sample extended sitemap here, try with it if this works?
@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.
Views
Replies
Total Likes
Views
Likes
Replies