Click here to Skip to main content
15,892,746 members
Articles / Web Development / ASP.NET

An extensible DotNetNuke Google Sitemap Generator

Rate me:
Please Sign up or sign in to vote.
4.14/5 (5 votes)
30 Apr 2008CPOL15 min read 82.5K   597   33  
Building a DotNetNuke Sitemap Generator using the ASP.NET Provider model.
<!-- NOTE! This isn't a complete web.config, it only shows the entries needed to get the DNN Google Sitemap 
     Provider to work -->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <!-- register local configuration handlers -->
  <configSections>
    <!-- you should already have a configSections just add in the section name="googlesitemaps line"-->
    <section name="googlesitemaps" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapSection, iFinity.DNN.GoogleSiteMapProvider" />
  </configSections>
  <system.web>
    <!-- you should already have a system.web, just add in the line in the httpHandler section-->
    <httpHandlers>
      <add verb="*" path="GoogleSiteMap.axd" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapHandler, iFinity.DNN.GoogleSiteMapProvider" />
    </httpHandlers>
  </system.web>
  <dotnetnuke/>
  <googlesitemaps defaultProvider="BaseGoogleSitemapProvider">
    <providers>
      <add name="BaseGoogleSiteMapProvider" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapProvider" defaultPagePriority="0.5" defaultPageUpdateFrequency="daily" includeHiddenPages="false"/>
      <add name="View_Blog.GoogleSiteMapProvider" type="iFinity.DNN.Modules.GoogleSiteMap.BlogGoogleSiteMapProvider, iFinity.DNN.BlogGoogleSiteMapProvider" defaultPagePriority="0.5" defaultPageUpdateFrequency="daily" showArchives="true" includeHiddenPages="false"/>
    </providers>
  </googlesitemaps>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager DNN Corp
Australia Australia
Bruce Chapman is the Product Manager for Cloud Services at DNN. He’s been an active member of the DNN Community since 2006 as a contributor, vendor and now employee of DNN Corp.

You can read his blog at http://dnnsoftware.com/blog or follow him on Twitter @brucerchapman

Comments and Discussions