Sitemap generation using scheduler | Community
Skip to main content
April 21, 2022
Solved

Sitemap generation using scheduler

  • April 21, 2022
  • 2 replies
  • 3940 views

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-aemaacs/

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 

 


 

 

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 Anish-Sinha

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 image
  2. Go to page properties of your parent page and in Advanced tab check "Generate Sitemap" checkbox. Screenshot below
  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

2 replies

Anish-Sinha
Adobe Employee
Anish-SinhaAdobe EmployeeAccepted solution
Adobe Employee
April 21, 2022

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 image
  2. Go to page properties of your parent page and in Advanced tab check "Generate Sitemap" checkbox. Screenshot below
  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
Sanjay_Bangar
Community Advisor
Community Advisor
April 22, 2022

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.

 

Vani1012Author
April 22, 2022

Hi @sanjay_bangar,

 

Yeah I removed edit.html from url in author instance I am getting the output correctly,but

but when I access at publish instance the us.sitemap.xml isnt even loading

September 3, 2024

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


Are you positive that your page was successfully published ?