allow page and module settings to be included in site templates, improve terms and privacy default content, add Settings for HtmlText module

This commit is contained in:
sbwalker
2025-03-06 14:46:17 -05:00
parent f2bd47d8bc
commit 5b4db0de3b
10 changed files with 320 additions and 17 deletions

View File

@ -35,6 +35,7 @@ namespace Oqtane.Models
new Permission(PermissionNames.View, RoleNames.Admin, true),
new Permission(PermissionNames.Edit, RoleNames.Admin, true)
};
Settings = new List<Setting>();
PageTemplateModules = new List<PageTemplateModule>();
// properties used by IModule
@ -60,6 +61,7 @@ namespace Oqtane.Models
public bool IsPersonalizable { get; set; }
public bool IsDeleted { get; set; }
public List<Permission> PermissionList { get; set; }
public List<Setting> Settings { get; set; }
public List<PageTemplateModule> PageTemplateModules { get; set; }
// properties used by IModule
@ -99,6 +101,7 @@ namespace Oqtane.Models
new Permission(PermissionNames.View, RoleNames.Admin, true),
new Permission(PermissionNames.Edit, RoleNames.Admin, true)
};
Settings = new List<Setting>();
Content = "";
}
@ -109,6 +112,7 @@ namespace Oqtane.Models
public string ContainerType { get; set; }
public bool IsDeleted { get; set; }
public List<Permission> PermissionList { get; set; }
public List<Setting> Settings { get; set; }
public string Content { get; set; }
[Obsolete("The ModulePermissions property is deprecated. Use PermissionList instead", false)]