答案 0 :(得分:1)
是。可以将自定义菜单项添加到各种菜单中。有关如何执行此操作的Fort详细信息,请参阅此处的文档:https://our.umbraco.org/documentation/extending/section-trees/trees-v7底部有一个添加自定义菜单项的示例。 E.g。
//register the event listener:
TreeControllerBase.MenuRendering += TreeControllerBase_MenuRendering;
//the event listener method:
void TreeControllerBase_MenuRendering(TreeControllerBase sender, MenuRenderingEventArgs e)
{
//this example will add a custom menu item for all admin users
// for all content tree nodes
if (sender.TreeAlias == "content"
&& sender.Security.CurrentUser.UserType.Alias == "admin")
{
e.Menu.Items.Add(new MenuItem("tweetLink", "Tweet this"));
}
}