Generating Sitemaps using Adobe Experience Manager

By TA Digital Marketing Team 2 min read

Sitemaps are an easy way for webmasters to inform search engines about pages on their site that are available for crawling. Creating and submitting a sitemap will ensure that a search engine knows about all the pages on your site, including URLs that may not be discoverable by the search engines normal crawling process. In its simplest form, a sitemap is an XML file that lists the URLs of a site along with additional metadata about each URL. If your website has a large number of URLs, you need to breakdown the sitemap into several sections, create a sitemap index file referencing them and then just submit the Sitemap index file to the search engines.

In this article, we will talk about using Adobe Experience Manager(AEM) to generate sitemaps for sites served by AEM.

Step1: Create Sitemap index page

First, you need to create a sitemap index template and a component to store the site sections which will go into the index file. The site sections are nothing but a link to top level category pages on the site. For each section, we can also provide rules in the component dialog on what URLs to include that section in the Sitemap e..g. “/…” would include all the URLs below the category. Write the rendering JSP xml.jsp to output the sitemap index. Finally, create the sitemap_index page at the root of your website which you can use to submit to search engines and populate the components.

Step2: Rendering individual sitemaps

Sitemap index pages are referenced in the sitemap index using the convention /top-level-page.xml. So we need to develop an xml.jsp for the base page of your site. The renderer will go to the sitemap index page and fetch the rules for traversing the section pages. Additional filtering options can be provided at Page Properties level(See figure below).


If a page is marked as “Exclude subpages from Sitemap” then all child pages will be excluded. If “Exclude from sitemap” is marked, only the current page is excluded.

That is it! You are ready to submit your sitemaps to search engines. In the future, we will be looking into the feasibility of providing priorities to the pages so that high traffic pages can be easily located through search.


Explore Additional Resources

Learn more on how to select the right CMS for your business and improve your customer’s Digital Experience.

Our Adobe Experience Manager Consulting team specializes in helping you deliver a seamless, intelligent, and personalized customer experience.


Over the past 20 years, we have completed thousands of digital projects globally. We have one of the largest and deepest multi-solutions digital consulting teams in the world. Our proprietary processes and years of Digital Experience expertise have earned us a 97% customer satisfaction rating with our clients ranging from Global Fortune 1000 to Mid-Market Enterprises, leading educational institutions, and Non-Profits.

If you would like more help optimizing or managing your Sitemap with AEM Contact Us.

About TA Digital

TA Digital is the only global boutique agency that delivers the “best of both worlds” to clients seeking to achieve organizational success through digital transformation. Unlike smaller, regional agencies that lack the ability to scale or large organizations that succumb to a quantity-over-quality approach, we offer resource diversity while also providing meticulous attention to the details that enable strategic success.

Over the past 20 years, TA Digital has positioned clients to achieve digital maturity by focusing on data, customer-centricity and exponential return on investment; by melding exceptional user experience and data-driven methodologies with artificial intelligence and machine learning, we enable digital transformations that intelligently build upon the strategies we set into motion. We are known as a global leader that assists marketing and technology executives in understanding the digital ecosystem while identifying cultural and operational gaps within their business – ultimately ushering organizations toward a more mature model and profitable digital landscape.

Recognized in 2013, 2014, 2015, 2019, and 2020 Inc. 5000 list as one of the most successful technology companies in the United States, TA Digital is pleased also to share high-level strategic partnerships with world class digital experience platform companies like Adobe, SAP and Salesforce and possess global partnerships with industry leaders such as Sitecore, Episerver, Elastic Path, BigCommerce, AWS, Azure and Coveo.

TA Digital Marketing Team

Written By

TA Digital Marketing Team