...
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
{
|
{
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
public string? PageTitle { get; set; }
|
||||||
public string Text { get; set; }
|
public string Text { get; set; }
|
||||||
public string? Photo { get; set; }
|
public string? Photo { get; set; }
|
||||||
public string Date { get; set; }
|
public string Date { get; set; }
|
||||||
|
@@ -80,7 +80,8 @@ namespace Back.Services
|
|||||||
Time=s.Time,
|
Time=s.Time,
|
||||||
Tags= s.Tags,
|
Tags= s.Tags,
|
||||||
DescriptionTag=s.DescriptionTag,
|
DescriptionTag=s.DescriptionTag,
|
||||||
keywordsTag=s.keywordsTag
|
keywordsTag=s.keywordsTag,
|
||||||
|
PageTitle=string.IsNullOrEmpty(s.PageTitle) ?s.Title : s.PageTitle,
|
||||||
}).FirstOrDefaultAsync();
|
}).FirstOrDefaultAsync();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@@ -17,6 +17,7 @@ namespace Shared.DTOs
|
|||||||
{
|
{
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
public string PageTitle { get; set; }
|
||||||
public string Text { get; set; }
|
public string Text { get; set; }
|
||||||
public string? Photo { get; set; }
|
public string? Photo { get; set; }
|
||||||
public string Date { get; set; }
|
public string Date { get; set; }
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
@using global::Shared.DTOs
|
@using global::Shared.DTOs
|
||||||
@using moadiran.Layout
|
@using moadiran.Layout
|
||||||
@inject NavigationManager Navigation
|
@inject NavigationManager Navigation
|
||||||
<PageTitle>@Item?.Title</PageTitle>
|
<PageTitle>@Item?.PageTitle</PageTitle>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
@inject Fixedvalues fv;
|
@inject Fixedvalues fv;
|
||||||
|
|
||||||
|
|
||||||
<Lheader />
|
<Lheader />
|
||||||
<div id="smooth-wrapper">
|
<div id="smooth-wrapper">
|
||||||
<div id="smooth-content">
|
<div id="smooth-content">
|
||||||
@@ -10,15 +9,4 @@
|
|||||||
<Lfooter />
|
<Lfooter />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@code {
|
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
||||||
{
|
|
||||||
if(firstRender)
|
|
||||||
await fv.SetUlr("Main");
|
|
||||||
|
|
||||||
await base.OnAfterRenderAsync(firstRender);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user