Last post Oct 18, 2005 08:13 PM by Stranger
Oct 17, 2005 09:22 PM|Stranger|LINK
I am having trouble with adding search to my custom module.
When I attach the debugger and Re-Index Content from Search Admin I would expect it to hit GetSearchItems() but it doesn't.
Here are the relevant code snippets. Am I missing something?
Public MustInherit Class CData
Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As DotNetNuke.Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core knows this module Implements Entities.Modules.ISearchable
Public Class CDataController
Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems
*** BREAKPOINT HERE ***
Business Controller Class in DesktopModules table
Oct 17, 2005 10:48 PM|ecktwo|LINK
Oct 18, 2005 01:11 AM|Stranger|LINK
Thanks EckTwo that was the answer.
Just came back to close this. I created a PA from the module then deleted and reinstalled it.
SupportedFeatures is now set to 2. it was set to 0. It works now. [:)]
I presume 2 means it implements iSearchable
Couple of extra questions if anyone knows. (Just out of curiosity)
1. If i had just deleted the control and added it again would it have changed the SupportedFeatures or do i need to add the whole definition
2. When you add a control is this value derived from the GetSearchItems stub or the iSearchable implementation or both.
3. Why do none of the core modules implement iSearchable or the GetSearchItems Stub in the View Module but only in the Controller.
Oct 18, 2005 08:13 PM|Stranger|LINK
I know you already know this EckTwo because you posted to this thread but for clarity i have included this link that answers most of my questions.