Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Sitemap generation using scheduler

Avatar

Level 4

Hi,

 

I am using aem 6.5.11.0, my requirement is to generate sitemap using service pack11 and Im following this article to generate https://aemsimplifiedbynikhil.wordpress.com/2021/12/01/apache-sling-sitemap-for-aem-6-5-11-and-aemaa...

But im not adding any dispatcher configurations as mentioned in the article When I try to access sitemap.xml its throwing error, is it because of omitting dispatcher configuration part? PFA 

Vani1012_0-1650550242846.png

 


 

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi @Vani1012 ,

You don't need the dispatcher configuration to enable the sitemap on localhost. You just need to perform 2 steps.

For generating the sitemap using the scheduler, make sure you are adding the properties and scheduler expression and then restarting the instance. It should work once cron expression is executed. No additional configuration is needed.

 

For on demand, follow the below steps:

  1. Navigate to /system/console/configMgr and look for service "Apache Sling Sitemap – Sitemap Generator Manager" and check the property "All on-demand" as shown in the below imageScreen Shot 2022-04-21 at 7.49.45 AM.png
  2. Go to page properties of your parent page and in Advanced tab check "Generate Sitemap" checkbox. Screenshot belowScreen Shot 2022-04-21 at 7.52.51 AM.png
  3. Now hit any the page or any child page where you set this checkbox true. You should see the sitemap on the page.
  4. If you still not see, try restarting you AEM instance and then check

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi @Vani1012 ,

You don't need the dispatcher configuration to enable the sitemap on localhost. You just need to perform 2 steps.

For generating the sitemap using the scheduler, make sure you are adding the properties and scheduler expression and then restarting the instance. It should work once cron expression is executed. No additional configuration is needed.

 

For on demand, follow the below steps:

  1. Navigate to /system/console/configMgr and look for service "Apache Sling Sitemap – Sitemap Generator Manager" and check the property "All on-demand" as shown in the below imageScreen Shot 2022-04-21 at 7.49.45 AM.png
  2. Go to page properties of your parent page and in Advanced tab check "Generate Sitemap" checkbox. Screenshot belowScreen Shot 2022-04-21 at 7.52.51 AM.png
  3. Now hit any the page or any child page where you set this checkbox true. You should see the sitemap on the page.
  4. If you still not see, try restarting you AEM instance and then check

Avatar

Community Advisor

Hi @Vani1012 ,

I think you followed correct and can you please remove edit.html from your url and try it.

localhost:4504/content/sitemap/us.sitemap.xml

For local don't required any dispatcher setup to check the sitemap.

 

Avatar

Level 4

Hi @Sanjay_Bangar,

 

Yeah I removed edit.html from url in author instance I am getting the output correctly,butScreenshot (66).png

but when I access at publish instance the us.sitemap.xml isnt even loadingScreenshot (67).png

Avatar

Level 5

Hi, Did u find the reason why in Publish its not working. Facing same issue.