✨ Managed mode page will render with layout
This commit is contained in:
8
DysonNetwork.Zone/Pages/Dynamic/DynamicPage.cshtml
Normal file
8
DysonNetwork.Zone/Pages/Dynamic/DynamicPage.cshtml
Normal file
@@ -0,0 +1,8 @@
|
||||
@model DynamicPage
|
||||
@{
|
||||
Layout = "_LayoutContained";
|
||||
}
|
||||
|
||||
<div class="dynamic-content">
|
||||
@Html.Raw(Model.Html)
|
||||
</div>
|
||||
8
DysonNetwork.Zone/Pages/Dynamic/DynamicPage.cshtml.cs
Normal file
8
DysonNetwork.Zone/Pages/Dynamic/DynamicPage.cshtml.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace DysonNetwork.Zone.Pages.Dynamic;
|
||||
|
||||
public class DynamicPage : PageModel
|
||||
{
|
||||
public string Html { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user