Expand my Community achievements bar.

SOLVED

How to check sitemap on localhost using ACS common Sitemap OSGi Service ?

Avatar

Community Advisor

How to check sitemap on localhost using ACS common Sitemap OSGi Service ?

I have set the homepage template path in ACS commons sitemap OSGi service. also set the localhost path in Day CQ Mail Service. then How to see the sitemaps on localhost. Can anybody know how to see the sitemap.xml file locally.

1 Accepted Solution

Avatar

Correct answer by
Employee

The SiteMap servlet gets configured with the resource (component) type, not the template path.

Once configured, you can request http://localhost:4502/<path to page>.sitemap.xml

For example, with weretail, you would configure the servlet with a resource type of weretail/components/structure/page (see screenshot below) and then request http://localhost:4502/content/we-retail/us/en.sitemap.xml

1526710_pastedImage_1.png

View solution in original post

6 Replies

Avatar

Community Advisor

yes I am referring to Sitemap Generator of acs-commons bundle.

I have put the homepage template path in ACS commons sitemap Servlet OSGi service. also put the localhost path in Day CQ Link Externalizer. then How to see the sitemaps on locally ?

Avatar

Level 10

I have asked the team whom worked on this functionality to respond to this question.

Avatar

Correct answer by
Employee

The SiteMap servlet gets configured with the resource (component) type, not the template path.

Once configured, you can request http://localhost:4502/<path to page>.sitemap.xml

For example, with weretail, you would configure the servlet with a resource type of weretail/components/structure/page (see screenshot below) and then request http://localhost:4502/content/we-retail/us/en.sitemap.xml

1526710_pastedImage_1.png

Avatar

Level 1

How can we shorten URL in sitemap , For example

<url>
</url>
I am getting above in my sitemap.xml and I want to remove "/content" .. how can I achieve  this

Avatar

Level 2

@meghsarora how did you remove /content from sitemap?

 

Regards,

Giri Babu