docs: #292 adding new category fields to GanjoorModifyPageViewModel
This commit is contained in:
parent
0d165f1954
commit
6dabd7d6f9
@ -137,6 +137,10 @@ namespace GanjooRazor.Areas.Admin.Pages
|
||||
Language = PageInformation.Poem == null ? null : PageInformation.Poem.Language,
|
||||
MixedModeOrder = PageInformation.Poem == null ? (PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.MixedModeOrder : 0) : PageInformation.Poem.MixedModeOrder,
|
||||
Published = PageInformation.Poem == null ? (PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.Published : true) : PageInformation.Poem.Published,
|
||||
TableOfContentsStyle = PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.TableOfContentsStyle : GanjoorTOC.Analyse,
|
||||
CatType = PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.CatType : GanjoorCatType.Default,
|
||||
Description = PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.Description : "",
|
||||
DescriptionHtml = PageInformation.GanjoorPageType == GanjoorPageType.CatPage ? PageInformation.PoetOrCat.Cat.DescriptionHtml : ""
|
||||
};
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -75,6 +75,26 @@
|
||||
/// </summary>
|
||||
public string Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// TOC Style
|
||||
/// </summary>
|
||||
public GanjoorTOC TableOfContentsStyle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Category Type
|
||||
/// </summary>
|
||||
public GanjoorCatType CatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// additional descripion or note
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// html mode of additional descripion or note
|
||||
/// </summary>
|
||||
public string DescriptionHtml { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// a description of the modfication
|
||||
/// </summary>
|
||||
|
||||
@ -7803,6 +7803,26 @@
|
||||
language (this is intended to affect html page encodings and not determine actuallly accents and ....)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorModifyPageViewModel.TableOfContentsStyle">
|
||||
<summary>
|
||||
TOC Style
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorModifyPageViewModel.CatType">
|
||||
<summary>
|
||||
Category Type
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorModifyPageViewModel.Description">
|
||||
<summary>
|
||||
additional descripion or note
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorModifyPageViewModel.DescriptionHtml">
|
||||
<summary>
|
||||
html mode of additional descripion or note
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorModifyPageViewModel.Note">
|
||||
<summary>
|
||||
a description of the modfication
|
||||
|
||||
@ -2719,6 +2719,10 @@ namespace RMuseum.Services.Implementation
|
||||
|
||||
cat.Published = pageData.Published;
|
||||
cat.MixedModeOrder = pageData.MixedModeOrder;
|
||||
cat.TableOfContentsStyle = pageData.TableOfContentsStyle;
|
||||
cat.CatType = pageData.CatType;
|
||||
cat.Description = pageData.Description;
|
||||
cat.DescriptionHtml = pageData.DescriptionHtml;
|
||||
|
||||
_context.GanjoorCategories.Update(cat);
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user