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.0Customer module search not workingCustomer module search not working
Previous
 
Next
New Post
12/4/2007 12:22 PM
 

Hi Guys,

I have developed a Custom module in DNN 3.3.7.To make my module searchable, I have implemented the Isearchable interface. But my search is not working. My code is as follow

 Controller Class Code

        Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems

            Dim colProducts As ArrayList = ListProducts(ModInfo.PortalID, ModInfo.ModuleID)

 

            Dim searchItems As Services.Search.SearchItemInfoCollection

 

            Dim productInfo As TFPProductInfo

 

            For Each productInfo In colProducts

                Dim searchItem As Services.Search.SearchItemInfo

 

                searchItem = New Services.Search.SearchItemInfo(ModInfo.ModuleTitle & "-" & productInfo.Prd_Name, "Category: " & productInfo.Cat_Name & ", " & productInfo.Prd_Descirption, 2, productInfo.Prd_DateAdd, productInfo.ModuleID, productInfo.PortalID.ToString, productInfo.Prd_Descirption)

 

                searchItems.Add(searchItem)

            Next

 

            Return searchItems

 

        End Function

ASCX Code

        Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems

            ' included as a stub only so that the core knows this module Implements Entities.Modules.ISearchable

        End Function

 

I also done some manually entries in database table “DesktopModules” against my module definition. Which are as follow

SupportedFeatures=”3”

BusinessController=”Technologyfootprints.DNN.Modules.TFPProduct.Business.TFPProductController,Technologyfootprints.DNN.Modules.TFPProduct.Business”

 

I have search a lot on internet regarding my problem but could not resolve. Please help me out in resolving this problem.

Thank in advance

Waiting your response

 
New Post
12/4/2007 12:47 PM
 

Have you tried debugging your code? setting a breakpoint to see what's happening?

I believe you'll find that when you attempt to add a searchitem to the collection, you're throwing an error because the collection is nothing.

I think you're missing a "New"

Dim searchItems As New Services.Search.SearchItemInfoCollection

 
New Post
12/5/2007 12:42 PM
 

Thank Steve fabian for you reply.

I have "new" the searchitems object as you discribe above.To debug the code I have added the mein dotnetnuke project in to my module.I have put the break point at the Controller class function "GetSearchItems()". it is not comming in the function "GetSearchItems()".

Please help me out in resloving this issue.

Waiting your response.

Thank once again.

 



 
New Post
12/5/2007 2:01 PM
 

ok, then let's check to make sure your module is 'registered' properly

Go to Host->Module Settings
Click on the pencil edit icon next to your module to get to the settings page

- Make sure that the check box next to "Searchable" is checked
- Make sure your controller class is specified properly in the "Controller Class" field.  It should look something like this...

DotNetNuke.Modules.Repository.RepositoryController, DotNetNuke.Modules.Repository

of course it will have the class name and namespace of your module.

 

 
New Post
12/5/2007 2:03 PM
 

Also, content is indexed by an indexing service that runs on a scheduled basis.

In order to test your code and hit your breakpoint, you will have to go to Host->Search Admin and manually kick off the indexer by clicking on "Re-index Content"

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Customer module search not workingCustomer module search not working


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