Andy,
Great question. I have never tried this before, but I believe you will have to implement ModuleSearchBase in your Razor module just like you would any other module in order to get your module content into the DNN Search.
For a Razor module, I am guessing you need to do the following:
- - Open module settings > Develop
- - Add a new C# class file
- - Paste code like this:
#region Using Statements
using System;
using System.Collections.Generic;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Search.Entities;
#endregion
namespace DotnetNuclear.SearchableRazorModule
{
public class BusinessController : ModuleSearchBase
{
public override IList GetModifiedSearchDocuments(ModuleInfo modInfo, DateTime beginDate)
{
return new List();
}
}
}
- - Open Host > Extensions, Edit your Razor module package. Add business controller class, ie: DotnetNuclear.SearchableRazorModule.BusinessController
- - Then you will have to update the Search supported features flag. You may have to do this directly in the table
All other instructions for implementing ModuleSearchBase are in my tutorial:
http://www.dnnhero.com/Premium/Tutori...