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