mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
18 lines
701 B
C#
18 lines
701 B
C#
![]() |
using JetBrains.Annotations;
|
|||
|
using Orchard.ContentManagement;
|
|||
|
using Orchard.ContentManagement.Drivers;
|
|||
|
|
|||
|
namespace Orchard.Core.Navigation.Models {
|
|||
|
[UsedImplicitly]
|
|||
|
public class MenuPartDriver : ContentPartDriver<MenuPart> {
|
|||
|
protected override DriverResult Editor(MenuPart part) {
|
|||
|
return ContentPartTemplate(part, "Parts/Navigation.EditMenuPart").Location("primary", "9");
|
|||
|
}
|
|||
|
|
|||
|
protected override DriverResult Editor(MenuPart part, IUpdateModel updater) {
|
|||
|
updater.TryUpdateModel(part, Prefix, null, null);
|
|||
|
return ContentPartTemplate(part, "Parts/Navigation.EditMenuPart").Location("primary", "9");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|