Browse Source
Merge pull request #4573 from abpframework/maliming/PageContent-LayoutHook
Add PageContent layout hook.
pull/4595/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
15 additions and
3 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Application.cshtml
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Empty.cshtml
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Components/LayoutHook/LayoutHooks.cs
|
|
|
@ -86,7 +86,9 @@ |
|
|
|
</div> |
|
|
|
} |
|
|
|
@(await Component.InvokeAsync<PageAlertsViewComponent>()) |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.First, StandardLayouts.Account) |
|
|
|
@RenderBody() |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.Last, StandardLayouts.Account) |
|
|
|
</abp-column> |
|
|
|
</abp-row> |
|
|
|
</div> |
|
|
|
@ -102,4 +104,4 @@ |
|
|
|
|
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Account) |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|
|
|
|
|
@ -64,7 +64,9 @@ |
|
|
|
@RenderSection("content_toolbar", false) |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.First, StandardLayouts.Application) |
|
|
|
@RenderBody() |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.Last, StandardLayouts.Application) |
|
|
|
</div> |
|
|
|
|
|
|
|
<abp-script-bundle name="@BasicThemeBundles.Scripts.Global" /> |
|
|
|
@ -78,4 +80,4 @@ |
|
|
|
|
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Application) |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|
|
|
|
|
@ -59,7 +59,9 @@ |
|
|
|
|
|
|
|
<div class="@containerClass"> |
|
|
|
@(await Component.InvokeAsync<PageAlertsViewComponent>()) |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.First, StandardLayouts.Empty) |
|
|
|
@RenderBody() |
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.PageContent.Last, StandardLayouts.Empty) |
|
|
|
</div> |
|
|
|
|
|
|
|
<abp-script-bundle name="@BasicThemeBundles.Scripts.Global" /> |
|
|
|
@ -73,4 +75,4 @@ |
|
|
|
|
|
|
|
@await Component.InvokeLayoutHookAsync(LayoutHooks.Body.Last, StandardLayouts.Empty) |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|
|
|
|
|
@ -13,5 +13,11 @@ |
|
|
|
public const string First = "Body.First"; |
|
|
|
public const string Last = "Body.Last"; |
|
|
|
} |
|
|
|
|
|
|
|
public static class PageContent |
|
|
|
{ |
|
|
|
public const string First = "PageContent.First"; |
|
|
|
public const string Last = "PageContent.Last"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|