I was able to successfully install the base Google sitemap provider without any problems, which seems to work properly including the appropriate pages. I attempted to incorporate the ArticlesSiteMapProvider to bring in the Ventrian News Articles into the sitemap. When I include the appropriate lines in the web.config I get the following error where I would expect to see the articles in the sitemap: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
My web.config in the context of the provider is as follows:
<configSections><section name="googlesitemaps" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapSection, iFinity.DNN.GoogleSiteMapProvider" />
</configSections>
<system.webserver><handlers>
<add name="SitemapHandler" verb="*" path="SiteMap.axd" type="iFinity.DNN.Modules.GoogleSiteMap.GoogleSiteMapHandler, iFinity.DNN.GoogleSiteMapProvider" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
<system.web>
<httpHandlers><add verb="*" path="SiteMap.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"/>
<!--
GoogleSiteMap Provider Attributes
name -> Matches the 'FriendlyName' of the module the provider is for
type -> The fully qualified namespace.type of the Provider Class, then the AssemblyName (minus the .dll)
defaultPagePriority -> value from 0 - 1 for the default page priority as seen in the output sitemap
defaultPageUpdateFrequency -> daily, weekly etc - the default page update frequency as seen in the output sitemap
includeHiddenPages -> whether or not to output 'hidden' pages into the sitemap.
NOTE: If a module-specific provider is installed, and the matching module is
installed on a hidden page, the module-specific sitemap provider overrides the includeHiddenPages.
Ie, a Blog module is installed on a hidden page. If 'includeHiddenPages'= false in the BaseGoogleSiteMapProvider entry, and the Blog GoogleSiteMap provider
is installed, whether or not the Blog module output is included in the Sitemap is determined by the 'View_Blog.GoogleSiteMapProvider' module's 'includeHiddenPages' attribute.
includeDisabledPages -> whether or not to output 'disabled' pages (page settings->advanced settings->disable)
This settings works in the same way as the includeHiddenPages settings - it works at the
page-level for the base provider, and the module-specific provider level. It allows the Url to be output
for a disabled page when includeDisabledPages="true". The default value is false.
useCachedSitemap -> Whether to cache the sitemap output to a file in the portal directory, under sitemaps/ True/False, false if omitted
sitemapCacheMinutes -> Length of time, in minutes, to cache the sitemap output for. This is calculated from the file write time of the cached sitemap output file.
useSitemapIndex -> true/false. Default/omitted=false. When true, instead of outputting a sitemap, a sitemap index file is generated instead. When true, sitemap caching is automatically used.
Each individual sitemap will be requested with googlesitemap.axd?sitemap=n where n is the number of the sitemap. See the instructions file for more detail.
maxEntriesPerSitemap -> configurable value of the number of url entries allowed per sitemap. If omitted, uses the standard 50,000 as per the sitemap schema. Use a value lower than 50,000 to split a large
sitemap up into a number of smaller sitemaps using the sitemapIndex.
-->
<!-- News Articles Sitemap Provider -->
<add name="DnnForge - NewsArticles.GoogleSiteMapProvider" type="iFinity.DNN.Modules.GoogleSiteMap.ArticlesGoogleSiteMapProvider, iFinity.DNN.ArticlesSitemapProvider" defaultPagePriority="0.5" defaultPageUpdateFrequency="daily" includeHiddenPages="false"/>
<!--
News Articles Provider Attributes
featuredOnly = "true" / "false" - When true, only featured articles are displayed in the SiteMap. Default false;
singlePagesOnly = "true" / "false" - When true, only the first page of articles are included in the Sitemap. Default false
maxNumArticles (integer value 1->upwards) - WHen specified, restricts the number of articles in the sitemap. Articles are sorted by Start Date. Default unlimited.
showHiddenAndExpired = "true" / "false" - Allows showing of hidden and expired articles -default false
showCategories = "true" / "false" - Whether to put an entry for the pagename/Categories/ url in with each page with the Articles Module. Default false.
-->
</providers>
</googlesitemaps>
Any help is appreciated.
Thanks.
Derek