Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a BootStrapper class which adds a new menu item on the members menulist.
I was wondering if its possible to fire a function inside my controller after hitting this menu item, or do we first need to show a dialog which then calls the controller function after hitting another button inside the dialog?
public class PackageApplicationEventHandler : ApplicationEventHandler
protected override void ApplicationStarted(
TreeControllerBase.MenuRendering += Package_MenuRendering;
private void Package_MenuRendering(TreeControllerBase sender, MenuRenderingEventArgs e)
// If not rendering menu for the document types, return
if (sender.TreeAlias != "member") return;
var menuItem = new Umbraco.Web.Models.Trees.MenuItem("package", "Package Item");
menuItem.Icon = "client";
// Append someting to fire controller function inside
// my App_Plugins/Package folder after hitting this menu item
menuItem.SeperatorBefore = true;
thanks for the intel, I will then launch a new view to do the task.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted