mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
752 B
24 lines
752 B
using System.Threading.Tasks;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace PublicWebSite.Host
|
|
{
|
|
public class PublicWebSiteMenuContributor : IMenuContributor
|
|
{
|
|
public Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if (context.Menu.Name != StandardMenus.Main)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
//TODO: Localize menu items
|
|
context.Menu.AddItem(new ApplicationMenuItem("App.Home", "Home", "/"));
|
|
context.Menu.AddItem(new ApplicationMenuItem("App.Products", "Products", "/Products"));
|
|
context.Menu.AddItem(new ApplicationMenuItem("App.Blog", "Blog", "/blog/abp"));
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|