[Enh] Updates Edit.razor with page sort order
Displays page list according to the sort order preferences applied to pages.
This commit is contained in:
@ -362,6 +362,7 @@
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_pages = await PageService.GetPagesAsync(PageState.Site.SiteId);
|
_pages = await PageService.GetPagesAsync(PageState.Site.SiteId);
|
||||||
|
_pages = _pages.OrderBy(item => item.ParentId).ThenBy(item => item.Order).ToList();
|
||||||
_pageId = Int32.Parse(PageState.QueryString["id"]);
|
_pageId = Int32.Parse(PageState.QueryString["id"]);
|
||||||
_page = await PageService.GetPageAsync(_pageId);
|
_page = await PageService.GetPageAsync(_pageId);
|
||||||
_icons = await SystemService.GetIconsAsync();
|
_icons = await SystemService.GetIconsAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user