Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Followed directions...ISearchable doesnFollowed directions...ISearchable doesn't work???
Previous
 
Next
New Post
12/22/2007 4:02 PM
 

After reading the Michael Washington tutorial, and following it closely, I am not able to get my module to recognize ISearchable interface in  my controller class.

This is my controller class

Namespace MNO.Modules.KNB
<DataObject(True)> _
Public Class KNBController
Implements Entities.Modules.ISearchable

 Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems
' Get the Surveys for this Module instance
Dim Topics As List(Of TopicsInfo) = ListKNB_TOPICS(ModInfo.ModuleID)
Dim SearchItemCollection As New SearchItemInfoCollection
Dim TopicsInfo As TopicsInfo
For Each TopicsInfo In Topics
Dim SearchItem As SearchItemInfo
With CType(TopicsInfo, TopicsInfo)
Dim strContent As String = System.Web.HttpUtility.HtmlDecode(.Title & " " & .Summary & " " & .Keywords & " " & .Details)
Dim strDescription As String = HtmlUtils.Shorten(HtmlUtils.Clean(System.Web.HttpUtility.HtmlDecode(.Summary), False), 100, "...")
SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & .Title, _
strDescription, _
.CreatedByUser, _
.CreatedDate, _
ModInfo.ModuleID, _
.TopicId.ToString, _
strContent, "TopicId=" & .TopicId.ToString)
SearchItemCollection.Add(SearchItem)
End With
Next

Return SearchItemCollection

End Function

In my Module definition I have this in my Controller class field: MNO.Modules.KNB.KNBController

When I hit update, ISearchable does not get checked. This module controller class is in the app code folder, does that make a difference?

Help! This portal runs 4.5.1

 
New Post
12/22/2007 9:17 PM
 

Are you sure "ListKNB_TOPICS(ModInfo.ModuleID)" actually returns anything?



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
12/26/2007 10:14 AM
 

Thanks for the reply, I've been out on holiday the past few days. I did hook that controller method up to a datagrid and I do get results. Regardless, even if there were no results (as there wouldn't be with a new module install) shouldn't the ISearchable box be checked in the mod definition?

I'm not sure how to troubleshoot this, since I can't get the breakpoint to trip in debugging.

Thanks.

 
New Post
1/27/2008 9:52 AM
 

any luck figuring this out?

 
New Post
1/27/2008 4:52 PM
 

I recall submitting to Gemeni an issue with the optional interfaces not being recognized after clicking Update back in version 4.5.0 but can't recall if it was fixed in version 4.5.1 or if the fix did not occur until 4.5.3. Is it possible to access the change logs for specific earlier versions?

When you mention that the module controller class is in the App_Code folder, is it in the root of the App_Code folder or in a sub-folder that has exactly the same name as the sub-folder under DesktopModules in which the module itself resides?  I've previously run into a few problems with the module definitions (specifically not recognizing supported features and not being able to create a module package) when there has been a mismatch of folder names.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Followed directions...ISearchable doesnFollowed directions...ISearchable doesn't work???


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out