Table of Contents

Class SitemapUrlProvider

Namespace
Dynamicweb.Frontend.UrlHandling
Assembly
Dynamicweb.dll

A provider that can contribute urls to sitemap.xml that are not present in the url index, i.e. urls resolved at runtime by a UrlQueryStringProvider. It is the responsibility of the provider to return urls identical to the urls generated at runtime.

public abstract class SitemapUrlProvider
Inheritance
SitemapUrlProvider
Derived
Inherited Members

Methods

GetLocations(UrlIndex, string)

Gets the absolute urls to include in sitemap.xml for the given url index. Implementations should stream results (yield) and avoid materializing the full set in memory, as the number of urls can be very large.

public abstract IEnumerable<string> GetLocations(UrlIndex index, string baseUri)

Parameters

index UrlIndex

The url index the sitemap is generated for.

baseUri string

The base uri of the sitemap without a trailing slash, i.e. https://www.mysite.com.

Returns

IEnumerable<string>

Absolute urls to include in the sitemap.

GetSitemapUrlProviders()

Gets a collection of all sitemap url providers.

public static IEnumerable<SitemapUrlProvider> GetSitemapUrlProviders()

Returns

IEnumerable<SitemapUrlProvider>
To top