C# Class Piranha.Web.Handlers.SitemapHandler

Generates the sitemap.xml from all published pages & posts.
Inheritance: IRequestHandler
Mostra file Open project: PiranhaCMS/Piranha

Public Methods

Method Description
HandleRequest ( HttpContext context ) : void

Handles the sitemap request.

Private Methods

Method Description
GetPermalink ( string permalink ) : string

Generates the correct url.

WriteNodes ( HttpContext context, List nodes ) : void

Writes the sitemap to the sitemap.

WritePosts ( HttpContext context, List posts ) : void

Writes all posts to the sitemap.

Method Details

HandleRequest() public method

Handles the sitemap request.
public HandleRequest ( HttpContext context ) : void
context System.Web.HttpContext The current http context
return void