Class SitemapBuilder
Inheritance
System.Object
SitemapBuilder
Namespace: DotNetNuke.Services.Sitemap
Assembly: DotNetNuke.dll
Syntax
public class SitemapBuilder : object
Constructors
| Improve this Doc View SourceSitemapBuilder(PortalSettings)
Initializes a new instance of the SitemapBuilder class. Creates an instance of the sitemap builder class.
Declaration
public SitemapBuilder(PortalSettings ps)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalSettings | ps | Current PortalSettings for the portal being processed. |
Properties
| Improve this Doc View SourceCacheFileName
Declaration
public string CacheFileName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
CacheIndexFileNameFormat
Declaration
public string CacheIndexFileNameFormat { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Providers
Declaration
public List<SitemapProvider> Providers { get; }
Property Value
| Type | Description |
|---|---|
| List<SitemapProvider> |
Methods
| Improve this Doc View SourceBuildSiteMap(TextWriter)
Builds the complete portal sitemap.
Declaration
public void BuildSiteMap(TextWriter output)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | output |
GetSitemapIndexFile(String, TextWriter)
Returns the sitemap file that is part of a sitemapindex.
Declaration
public void GetSitemapIndexFile(string index, TextWriter output)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | index | Index of the sitemap to return. |
| TextWriter | output | The output stream. |
Remarks
The file should already exist since when using sitemapindexes the files are all cached to disk.