HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 1.1ASP.Net 1.1Customer module search not workingCustomer module search not working
Previous
 
Next
New Post
11/30/2007 9:47 AM
 

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/12/2007 9:16 PM
 

Hello Ali,

I have a pretty much identical problem, and was hoping you could answer a couple of questions.

1.  have you figured out how to get it working?

2.  Can the iSearchable interface be implemented in the "View" control for the module, or must the BusinessController class be a seperate class in its own right?

3.  Is it possible to define the BusinessController class in a dnn manifest file, and if so what is the element name and syntax?

hoping you have the silver bullet.

Mark.

 

 

 
New Post
12/12/2007 10:43 PM
 

mark,

I have added my comments in Bold

1.  have you figured out how to get it working?

I have read the following article to implement search in my custom module but it stil not working

http://www.innovatasites.com/ecktwo/Tutorials/BuildingModulesWithISearchable/tabid/1391/Default.aspx?PageContentMode=1

2.  Can the iSearchable interface be implemented in the "View" control for the module, or must the BusinessController class be a seperate class in its own right?

In view control we add only stubs but it is implemented in Business Controller class Please follow the above article

3.  Is it possible to define the BusinessController class in a dnn manifest file, and if so what is the element name and syntax?

I have not idea about that

 
New Post
12/12/2007 11:25 PM
 

Hello Ali,

I followed the same link to get the basic changes completed.

I then followed your idea about making changes to the DesktopModules table directly to get the module to believe it was capable of searching.

However if I put a breakpoint in the controller class it never seems to run.

I also hit the "re-Index Content" link on the search Admin page, which still failed to execute the controller class code.

Did you your controller class ever execute?

Mark.

 

 
New Post
12/15/2007 6:20 AM
 

Mark,

I have also try to debug my code by putting break point to my controller class function "GetSearchItems ".But the debuger don,t come in the function. I am also waiting some body else could answer this post and our common problem could be solved.

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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.