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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesiSearchable in DNN 6.1 problemiSearchable in DNN 6.1 problem
Previous
 
Next
New Post
12/2/2011 4:51 PM
 

hello,

I have a custom module that I am trying to make iSearchable.  I followed the instructions listed here:
http://www.dotnetnuke.com/Resources/B...
but when I go to HOST-->Extensions-->MyModule--->settings      the module setting checkbox iSearchable is false

The following is my code:
--------------------------------------------------------------------------------------------------------------------
Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As DotNetNuke.Services.Search.SearchItemInfoCollection Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems

            Dim SearchItemCollection As New SearchItemInfoCollection

            Dim colNewss As List(Of NewsInfo) = News_GetAllNews(ModInfo.ModuleID)
            Dim objNews As NewsInfo
            For Each objNews In colNewss
                Dim SearchItem As SearchItemInfo = New SearchItemInfo(ModInfo.ModuleTitle, objNews.Title, 0, objNews.CreatedDate, ModInfo.ModuleID, objNews.NewsId.ToString, objNews.ShortDescription)
                SearchItemCollection.Add(SearchItem)
            Next

            Return SearchItemCollection 
End Function
--------------------------------------------------------------------------------------------------------------------------------------

which is in NewsController.vb in a folder called Components within the root of my module folder.

I am not sure how to properly declare the Business Controller Class in the settings.  
I have tried the following
DotNetNuke.Modules.MyModuleFolderName.SurveyController
DotNetNuke.DesktopModules.MyModuleFolderName.SurveyController
DotNetNuke.Modules.MyModuleFolderName.Components.SurveyController

any help would be greatly appreciated thanks

jordan king



 
New Post
12/3/2011 7:21 PM
Accepted Answer 

The folders do not matter (.net differes from java in that the path does not form the classpath), you only need to determine the namespace and class combination e.g. if your NewsController.vb class looks like this:

Namespace Jordan

    Public Class NewsController
        Implements IPortable
        Implements ISearchable
...rest

then your business controller would look like this

Jordan.NewsController


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/12/2011 3:15 PM
 

thanks,

works now, excellent!

 
New Post
5/16/2012 10:06 AM
 
Hi, I have the same problem.
I'm using the Visual Studio Template, which comes with 3 files in Components folder: FeatureController.cs, Relatorio.cs and RelatorioController.cs

namespace DotNetNuke.Modules.ModuleAgroCotacoes.Components
{
public class FeatureController : ISearchable
{
public DotNetNuke.Services.Search.SearchItemInfoCollection GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo ModInfo)
{
SearchItemInfoCollection SearchItemCollection = new SearchItemInfoCollection();
List colModuleAgroCotacoess = RelatorioController.GetRelatorios(ModInfo.ModuleID);
foreach (Relatorio objModuleAgroCotacoes in colModuleAgroCotacoess)
{
SearchItemInfo SearchItem = new SearchItemInfo(ModInfo.ModuleTitle, objModuleAgroCotacoes.Content, objModuleAgroCotacoes.CreatedByUserID, objModuleAgroCotacoes.CreatedOnDate, ModInfo.ModuleID, objModuleAgroCotacoes.codigoRet.ToString(), objModuleAgroCotacoes.Content, "ItemId=" + objModuleAgroCotacoes.codigoRet.ToString());
SearchItemCollection.Add(SearchItem);
}
return SearchItemCollection;
}
}

But the checkbox iSearchable still as false.
 
New Post
5/16/2012 4:43 PM
 

please make sure you've declared it in your manifest as having a business controller and supporting searching i.e. it will look something like

<businessControllerClass>DotNetNuke.Modules.ModuleAgroCotacoes.ComponentsFeatureController, DotNetNuke.Modules.ModuleAgroCotacoes.Components</businessControllerClass>
<supportedFeatures>
<supportedFeature type="Searchable" />
</supportedFeatures>


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesiSearchable in DNN 6.1 problemiSearchable in DNN 6.1 problem


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