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 not working for meISearchable not working for me
Previous
 
Next
New Post
8/2/2010 2:26 PM
 
I have custom built a Press Releases module, and I am having trouble getting DNN to recognize it as searchable. When I install the module or update it, the "Is Searchable?" checkbox automatically unchecks. I have the following GetSearchItems method in my PressReleasesController.vb class. Is there something else I need to do to get DNN to recognize my module as Searchable?


Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As DotNetNuke.Services.Search.SearchItemInfoCollection Implements _

Entities.Modules.ISearchable.GetSearchItems

' Get the Surveys for this Module instance

Dim colPressReleases As List(Of PressReleasesInfo) = GetCurrentPressReleases(ModInfo.ModuleID)

Dim SearchItemCollection As New SearchItemInfoCollection

Dim PRInfo As PressReleasesInfo

For Each PRInfo In colPressReleases

Dim SearchItem As New SearchItemInfo(ModInfo.ModuleTitle & " - " & PRInfo.Title, PRInfo.Blurb, 1, PRInfo.ReleaseDate, PRInfo.ModuleId, PRInfo.EntryId.ToString, PRInfo.Content)

SearchItemCollection.Add(SearchItem)

Next

Return SearchItemCollection

End Function

 
New Post
8/2/2010 5:01 PM
 
In the module's manifest, you need to make sure that you indicate that the module supports searching.  You didn't have to do this in DNN 4, but in DNN 5 you have to be explicit about the module's features.

In the <desktopModule> element, add this:
<supportedFeatures>
  <supportedFeature type="Searchable" />
</supportedFeatures>

Hope it helps,

Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/2/2010 5:56 PM
 
I added that, and reinstalled. Still, the dbo.DesktopModules.SupportedFeatures is 0 and not 3. I think there must be some other issue, because even if I manually set that field to 3 (and the checkbox becomes checked when I do this) it still is not searchable.

<desktopModule>
    <moduleName>PressReleases</moduleName>
    <foldername>PressReleases</foldername>
    <supportedFeatures>
        <supportedFeature type="Searchable" />
    </supportedFeatures>
<businessControllerClass></businessControllerClass>
<moduleDefinitions>
    <moduleDefinition>
    <friendlyName>Press Releases</friendlyName>
    <defaultCacheTime>0</defaultCacheTime>
...
...
...

 
New Post
8/2/2010 11:39 PM
 
You are missing the businessControllerClass information.

This is the class path to your ISearchable method, for example:

If using WAP the “class path” and “assembly name” is required
MyModule.Controller, MyModule

Using WSP just “class path” is required
MyModule.Controller

You will then see this registration in your extension settings “Business Controller Class” and DNN will know where your interface is located.


Robert Harriman
WEBMAZING.NET
AutoWebSuite / BrokerWebSuite

DNN Modules for Auto Dealers and Real Estate Professionals.

 
New Post
8/3/2010 9:34 AM
 
Thanks to both of you for helping. The box is checked now, but my item(s) are still not coming up in any search results or the RSS feed (using DotNetNuke.Services.Syndication.RssHandler). I've made sure the Allow Syndication box is checked on the settings, and I've also Re-Indexed content. Not sure what else to check.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesISearchable not working for meISearchable not working for me


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