posts - 376, comments - 611, trackbacks - 115,
Dan Bartels online engineering logbook... Items that I find useful organized for my use, and indexed by google for yours. Here you can find information about Microsoft C# programming, SQL SERVER 2005, Telligent Systems CommunityServer, Dot Net Nuke, Windows Vista / Longhorn, and just about anything else that would compel me to type.

News

What I am Reading:


Professional Community Server

Past books can be viewed on:

Post Categories

Archives

Coding Techniques

Coding Tools

Community Sites

Deal Finders

Friends Businesses

Microsofties

Smartphones

Utilities

my blogmap
New Google SiteMap controls for DNN and CS

I made a pair of controls... 

For DNN I built a DesktopModule, which you can upload, and then use a FriendlyURL to move it to the root...  It dynamically pulls your sites tabs, and exposes them as a google sitemap.  You can see a sample at http://www.danbartels.com/googlesitemap.aspx. (a PA and the trivial source in C# is included with this download)

For CS I made a new HTTPHandler (actually one for CS 1.1.0.50615 and another for CS 1.2.0.50811).  This handler builds a GoogleSiteMapIndex.aspx file at the root of the site, and individual GoogleSiteMap.aspx files for each "section" on your site.  Basically exposing the aggregate "category" view, and each individual "post" view for Forums, Galleries, and Blogs. See http://blog.danbartels.com/googlesitemapindex.aspx for a sample.

Both of these controls can be downloaded from http://beta.mycommunityserver.com from

http://beta.mycommunityserver.com/Downloads/DotNetNukeModules/tabid/79/Default.aspx

and

http://beta.mycommunityserver.com/ControlGallery/tabid/57/Default.aspx

You will also need a google webmaster account (your gmail login will work) and register the URLS with google via https://www.google.com/webmasters/sitemaps

Dan

Right now both packages require that you manually ping google when your site index changes (for CS, this is every time you post)  I hope to be able to build an admin interface for this in DNN, and use a CSModule on the post save for CS...

[Update 8.18.2005: I added the CSModule to auto ping google on each post save event]

Published Wednesday, August 17, 2005 7:56 PM by DanB

Filed under ,
::

Comments

# re: New Google SiteMap controls for DNN and CS @ Thursday, August 18, 2005 7:59 AM

Brilliant! I will be installing this into my DNN sites over the weekend.

Unfortunately I am in the process of converting my .text blog into wordpress as it has (had?) better sitemap support. I wasn't really too pleased with CS, I think it is designed more for big sites. Then again, your site looks pretty good.

Shifty

# re: New Google SiteMap controls for DNN and CS @ Thursday, August 18, 2005 9:48 AM

Shifty,
Too bad about the wordpress... CS 1.1 has come a long way... If you are somewhat technical, there are instructions on my blog, for setting up CS for a single blog at the root, and even how to run your CS site as a virtual directory under your DNN with your CS users linked to a DNN portal.

I am also working on some DNN modules, blogs will be first, its not quite ready yet for a preview, and its taking a bit longer than I expected, but I am also in charge of the CS galleries code, and have to hit some milestones for the 1.2 release shortly. I hope you give CS another look =)

Dan

DanB

# re: New Google SiteMap controls for DNN and CS @ Wednesday, September 14, 2005 9:27 PM

Hey Dan, just installed it at my site (blogontheweb.com). Thank you it works awesome. One problem though, we have over 4000 blogs. Any plans for paginating the index

dano

# re: New Google SiteMap controls for DNN and CS @ Thursday, September 15, 2005 11:33 AM

Dano, The index always represents the 1000 most recently updated sections on your site. With each post, google is pinged, and they come and pull the site index, and look at the last update time on each item in it.. Then they decide what in their index is out of date, and go spider... So the index file sort of pages itself =)

Dan

DanB

# re: New Google SiteMap controls for DNN and CS @ Thursday, September 15, 2005 1:10 PM

Ahh, that makes good sense. So I guess I have another question then. Please look at my sitemapindex (blogontheweb.com). For some reason it does not seem to show the most recently updated sections. For instance there are no gallery urls and there only about 5 blogs with todays date even though more than that have updated. Another example is a blog named mike700 that is updated multiple times every day but is not in the index. Any ideas? Dan, Thanks again dano.

dano

# re: New Google SiteMap controls for DNN and CS @ Thursday, September 29, 2005 4:16 AM

Can this work with DNN child portals? If yes, how is it acchieved? Many thanks.

Winalot

# re: New Google SiteMap controls for DNN and CS @ Wednesday, October 05, 2005 2:58 PM

I have installed DanBartels.DNN.GoogleSiteMap v1.00.04

I have problems with incorrect date format:
<lastmod>2005-10-010</lastmod>

JB

# re: New Google SiteMap controls for DNN and CS @ Wednesday, November 09, 2005 10:00 PM

Problem with the date format also. It's adding that 0 to the day.
<lastmod>2005-11-011</lastmod>

Paul Davis

# re: New Google SiteMap controls for DNN and CS @ Friday, November 11, 2005 8:47 AM

Some thing tells me that these comments might not get looked at much any more. :) Anyway I've found and fixed the date format problem. I've got absoultly no idea why my if statement works and the original doesn't but here it is;
Change the formatdate method in the XMLwriter.cs file find the second if statement and change it from if(d.Day.ToString().Length == 1) to if(d.Day.ToString().Length <=1)
and everything works.
I don't know why as it means pretty much the same thing and the exact same test is applied to the month and works fine but anyay there you are for anyone who wants it and finds their way here.

Paul Davis

# re: New Google SiteMap controls for DNN and CS @ Friday, November 11, 2005 2:47 PM

Thanks for the update... I review all my comments... and love the fact that this code is actually getting used =)

I have been just a bit under a crunch with the CS 2.0 beta stage, and haven't had time to get back to my side projects...

In a couple of weeks, I will be updating all of my CS add-ons to work with the new code (probably about beta 2)... I will update the source then; as well as making sure it works with the latest DNN..

Dan

DanB

# re: New Google SiteMap controls for DNN and CS @ Thursday, December 08, 2005 11:39 PM

Hmm. My little change worked for November but it's broken again for December. Oh well it was a good try. :)

BTW I really like the nice clean look of your site. I wish I had just the littlest tiny bit of artistic tallent. Anyway Thanks for the modul. It's increased my pagerank a bit.

PhD

Paul Davis

# re: New Google SiteMap controls for DNN and CS @ Friday, February 17, 2006 12:16 AM

Hello all i am wondering a long for one thing. I want to call another user control in my present user control but fails in doing that.Can you people help me in that.Thx in addvance. here is the function i m using for it.

Private Sub LoadControlType()

         Private m_controlToLoad As String = "CourseList.ascx"

      Try

         Dim objPortalModuleControl As DotNetNuke.Entities.Modules.PortalModuleBase

         objPortalModuleControl = CType(Me.LoadControl(m_controlToLoad), DotNetNuke.Entities.Modules.PortalModuleBase)

         objPortalModuleControl.ModuleConfiguration = Me.ModuleConfiguration

         objPortalModuleControl.ID = System.IO.Path.GetFileNameWithoutExtension(m_controlToLoad)

         plhMain.Controls.Add(objPortalModuleControl)

         objPortalModuleControl = Nothing

      Catch exc As Exception

         ProcessModuleLoadException(Me, exc)

      End Try

End Sub

Ashish

# re: New Google SiteMap controls for DNN and CS @ Monday, February 20, 2006 3:30 PM

Dan or anyone,
Please post the step-by-step instructions for using Dan's Google sitemap module and how to post it to google search engine.  Thanks, newbee2000

newbee2000

# Google Sitemaps @ Thursday, November 16, 2006 10:11 AM

If you are not already familiar with Google Sitemaps [wiki:[wikipedia:Google Webmaster Tools]], simply

Über Times

# re: New Google SiteMap controls for DNN and CS @ Wednesday, December 06, 2006 5:06 AM

Does this work if there are multiple domains hosted by one instance of DotNetNuke?

Cheers

PH

# re: New Google SiteMap controls for DNN and CS @ Friday, January 26, 2007 8:34 AM

Like the concept for the DNN control, one MAJOR flaw and security hole is that is displays all the tabs on the site, even those which are designated for registered users only or whatever other security groups you have set up!

Has anyone else not spotted this or am I being dumb?

Maybe it would be better just to display tabs which are public?

mediademon

Leave a Comment

(required) 
(required) 
(optional)
(required) 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
powered by god (with a little help from Telligent Systems - Community Server 2.1)