My Mighty Blog

Listen to me and label every single thing I say as a 'fact'. You do it for the news networks, why not me??? These are my views on current events, family, news, government, technology, internet, programming, and whatever else pops into my head.

I cannot seem to get the class I wrote for the Google Search Provider for DotNetNuke to get created in the reflection process. Argh!!! It keeps telling me that there is a missing method, but I have created all of the methods that the inherited SearchDataStoreProvider class required me to. I also bounced what I did against the core search provider and everything seems to be in order, but I cannot get past the *censored for your benefit* error that you will see on the linked post. :(

Okay... I vented and now I feel better! :)

Labels:

posted by The Mighty Will @ permalink  
Personal Update
Not that any of you out there care as much as I do, but my daughter will be coming back to visit this week. I am really excited! I expect development to slow down tremendously while she is here. Also, there are new pictures in the online photo gallery. I have finally caught up on posting those. Enjoy!

Labels:

posted by The Mighty Will @ permalink  
I recently needed to retrieve Tab information from a URL for the Google Search Provider I am writing for DotNetNuke. (You can translate "tab" information into "page" information if you are not familiar with the term.)

With some much appreciated help from the DotNetNuke forums, and more specifically John Mitchell from the Core Team, I was able to write the following function that really helped me out. I hope it can help you out too.

Basically, I take the URL (hopefully it is properly formed) and return a TabInfo object from it. This will give me the basis for getting any of the information it provides, as well as portal information.

Private Function GetTabInformation(ByVal TabUrl As String) As DotNetNuke.Entities.Tabs.TabInfo

TabUrl = TabUrl.ToLower

Dim _TabId As Integer = 0
Dim _tc As New DotNetNuke.Entities.Tabs.TabController

If TabUrl.IndexOf("tabid") > 0 Then

_TabId = Integer.Parse(Regex.Match(TabUrl, "tabid[=/](\d+)", RegexOptions.IgnoreCase).Groups(1).Value)

Return _tc.GetTab(_TabId)

Else

Return Nothing

End If

End Function

DotNetNuke Google Search Provider Update
On a separate note, in developing this provider I have run into some unexpected snags that I might not have ran into if I were creating a provider for one of the other pieces of functionality. The search provider inherits from a separate provider source. In turn, I cannot implement the parameters like the other providers use. However, I have come up with a work-around which will require the user to use a "config" file to adjust the Google Appliance ip number (location) and collection name.

Labels:

posted by The Mighty Will @ permalink