Hello everyone =)
For some reason I'm having problems with dotnetnuke detecting that my module implements ISearchable (on the module definition it shows up false). I must say that this is a non compiled module (it doesn't have a .dll in the bin directory). It's really a simple module. I can't seem to manually change the module to "ISearchable: true" as you did in earlier dotnetnukes.
I am of course Implementing the ISearchable interface. In fact, here's the code (C#) Note that I already added the necessary "using" for these to work:
//Declaration
public partial class DesktopModules_Innovaction_BasicSql_BasicSql : DotNetNuke.Entities.Modules.PortalModuleBase, ISearchable
//Method
public SearchItemInfoCollection GetSearchItems(ModuleInfo ModInfo)
{
var query = DotNetNuke.Data.DataProvider.Instance().ExecuteScalar("Innovaction_" + ModuleId + "_Sql");
var ItemInfoCollection = new SearchItemInfoCollection();
var ItemInfo = new SearchItemInfo(ModuleConfiguration.ModuleTitle, ModuleConfiguration.ModuleTitle, 0 , DateTime.Now, ModuleId, ModuleConfiguration.ModuleTitle, query);
ItemInfoCollection.Add(ItemInfo);
return ItemInfoCollection;
}
Does anybody know how can I do so that dotnetnuke recognizes my non compiled module as an ISearchable-Implemented module?
Thanks a lot!!