2022 Developer Survey is open! Take survey.

Hot answers tagged

8 votes

How to format SXA sitemap XML?

Yes, you can. But it's not configurable. You need to override SitemapGenerator located in Sitecore.XA.Feature.SiteMetadata library. Most of the things are marked there as protected virtual so you ...
user avatar
8 votes
Accepted

Options for sitemap generation on larger solutions

I have done this before by using a custom handler to provide the sitemap. In the handler I used the SearchAPI to pull a list of all items that are derived from a _Sitemap template and that have the ...
user avatar
  • 18.8k
4 votes

Options for sitemap generation on larger solutions

Have you tried the Ultimate Sitemap module? I'm not sure if you can schedule tasks for it out of the box to be honest. But I think you can get that with the Automated publisher module as well. I ...
user avatar
  • 5,636
4 votes
Accepted

Advice on hreflang usage in page html vs. using in sitemap.xml file

We have done this for several clients. I have added the alternate tags to the sitemap but that caused the sitemap to be too large and I didn't want to create multiple sitemaps. So we added the tag ...
user avatar
4 votes
Accepted

Creating Sitemap without using any module

During my journey with Sitecore starting from version 6.4, until now, I couldn't find a Sitecore feature that can build Sitemap XML for you automatically. You have few options: Use one of the Market ...
user avatar
3 votes

Execute a site dependent sitecore task

If the different domains map 1 to 1 with a site node and those site nodes have different root paths then this should help. You should be able to make an extension method that finds the context site ...
user avatar
  • 2,457
2 votes
Accepted

Adding sitemap.xml custom route causes EnsureLoggedInForPreview.Process

I had to explicitly allow xml files using the Sitecore FilterUrlExtensions setting: <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <pipelines> ...
user avatar
2 votes

How to allow editors to configure redirection for a particular Item/Page?

You can use redirect module : https://marketplace.sitecore.net/Modules/301_Redirect_module.aspx?sc_lang=en Github repository where you can get the code and to modify it: https://github.com/Chris-...
user avatar
  • 17.7k
2 votes

Sitemap in SXA JSS Site

TL;DR I think you forgot to extend Page template with appropriate field (_Sitemap) Current status Right now SXA (10 and lower) doesn't support officially Sitemap feature in JSS sites. There is no ...
user avatar
2 votes

Sitemap generating random urls

bgsi/public/group_scheme/index.jsp Sounds like Java Server Pages. Sitecore is based on .Net and doesn't use this page extension. That is why I assume that it could be added by some external sitemap(...
user avatar
  • 3,386
2 votes

Sitemap is not showing hostname on CD server

From what I can see, sitemap.xml host is generated in the following order: If targetHostName site property is not empty, it's used. If hostName property doesn't contain wildcards (*) or multiple ...
user avatar
1 vote
Accepted

Sitemap set noindex attribute

This can be achieved in several ways, I will describe 2 ways below: Robots.txt: If you want to exclude all the pages below a particular route, you can add an entry in the Robots.txt like below: ...
user avatar
1 vote

Sitemap generating random urls

If you take a look at the current implementation of the SitemapGenerator service in Sitecore.XA.Feature.SiteMetadata.dll, there is a method GetFullUrl which renders the url in the sitemap ...
user avatar
1 vote
Accepted

404 error page intermittently returned for SXA XML sitemap

I believe the reason why this was happening was because of SXA bug 393910: https://dev.sitecore.net/Downloads/Sitecore%20Experience%20Accelerator/10x/Sitecore%20Experience%20Accelerator%201000/...
user avatar
1 vote
Accepted

Multilingual URLs in Sitemap.xml for SXA 1.5

SXA supports multiple languages Sitemap from SXA 1.6- check the release notes here for more details- The SEO Sitemaps aggregate all the available sites under a single hostname, and support multiple ...
user avatar
1 vote

Advice on hreflang usage in page html vs. using in sitemap.xml file

Having done this in the past for a customer, we implemented a small bit of code on the layout that would find all versions published in other languages and build out link attributes in the header, ...
user avatar
  • 773

Only top scored, non community-wiki answers of a minimum length are eligible