diff --git a/Oqtane.Server/Modules/HtmlText/Manager/HtmlTextManager.cs b/Oqtane.Server/Modules/HtmlText/Manager/HtmlTextManager.cs
index 6c61c25e..d0a9f302 100644
--- a/Oqtane.Server/Modules/HtmlText/Manager/HtmlTextManager.cs
+++ b/Oqtane.Server/Modules/HtmlText/Manager/HtmlTextManager.cs
@@ -66,8 +66,8 @@ namespace Oqtane.Modules.HtmlText.Manager
Title = pageModule.Module.Title,
Description = string.Empty,
Body = htmltext.Content,
- ContentModifiedBy = htmltext.ModifiedBy,
- ContentModifiedOn = htmltext.ModifiedOn
+ ContentModifiedBy = htmltext.CreatedBy,
+ ContentModifiedOn = htmltext.CreatedOn
});
}
}
diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Modules/[Owner].Module.[Module]/Index.razor b/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Modules/[Owner].Module.[Module]/Index.razor
index ac84a97e..4c68ada6 100644
--- a/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Modules/[Owner].Module.[Module]/Index.razor
+++ b/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Modules/[Owner].Module.[Module]/Index.razor
@@ -38,8 +38,7 @@ else
}
@code {
- // uncomment the following line to use Static render mode for this component
- // public override string RenderMode => RenderModes.Static;
+ public override string RenderMode => RenderModes.Static;
public override List Resources => new List()
{
diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Client/[Owner].Module.[Module].Client.csproj b/Oqtane.Server/wwwroot/Modules/Templates/External/Client/[Owner].Module.[Module].Client.csproj
index 4181f2df..1360e50b 100644
--- a/Oqtane.Server/wwwroot/Modules/Templates/External/Client/[Owner].Module.[Module].Client.csproj
+++ b/Oqtane.Server/wwwroot/Modules/Templates/External/Client/[Owner].Module.[Module].Client.csproj
@@ -13,9 +13,9 @@
-
-
-
+
+
+
diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/Manager/[Module]Manager.cs b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/Manager/[Module]Manager.cs
index dcd9e432..63945d3d 100644
--- a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/Manager/[Module]Manager.cs
+++ b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/Manager/[Module]Manager.cs
@@ -9,6 +9,7 @@ using Oqtane.Interfaces;
using Oqtane.Enums;
using Oqtane.Repository;
using [Owner].Module.[Module].Repository;
+using System.Threading.Tasks;
namespace [Owner].Module.[Module].Manager
{
@@ -60,23 +61,25 @@ namespace [Owner].Module.[Module].Manager
}
}
- public List GetSearchContents(Oqtane.Models.Module module, DateTime startTime)
+ public Task> GetSearchContentsAsync(PageModule pageModule, DateTime lastIndexedOn)
{
- var searchContentList = new List();
+ var searchContentList = new List();
- var [Module]s = _[Module]Repository.Get[Module]s(module.ModuleId);
- foreach (var [Module] in [Module]s)
- {
- searchContentList.Add(new SearchContent
- {
- Title = module.Title,
- Description = string.Empty,
- Body = [Module].Name,
- ModifiedTime = [Module].ModifiedOn
- });
- }
+ foreach (var [Module] in _[Module]Repository.Get[Module]s(pageModule.ModuleId))
+ {
+ if ([Module].ModifiedOn >= lastIndexedOn)
+ {
+ searchContentList.Add(new SearchContent
+ {
+ Title = pageModule.Module.Title,
+ Body = [Module].Name,
+ ContentModifiedBy = [Module].ModifiedBy,
+ ContentModifiedOn = [Module].ModifiedOn
+ });
+ }
+ }
- return searchContentList;
+ return Task.FromResult(searchContentList);
}
-}
+ }
}
diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/[Owner].Module.[Module].Server.csproj b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/[Owner].Module.[Module].Server.csproj
index 43859ecc..e76e299d 100644
--- a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/[Owner].Module.[Module].Server.csproj
+++ b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/[Owner].Module.[Module].Server.csproj
@@ -19,10 +19,10 @@
-
-
-
-
+
+
+
+