Getting rid of the "plugin=NameOfPlugin" querystring?

Aug 28, 2013 at 10:29 PM
Hi there,

Is there any way that I can use areas like Area/Controller/View and that way get rid of the querystring "plugin=NameOfPlugin" or is that just not posible ?

Best regards
Oct 25, 2013 at 8:24 PM
Hi Martin,

Yes you can.
I just did that.

Follow below steps and you have it too:
  1. Find the MenuItem extension, and change MenuItem method into:
        public static MenuItem Build(XmlNode node, IBundle owner)
            var result = new MenuItem
                URL = XmlUtility.ReadAttribute(node, "url"),
                Text = XmlUtility.ReadAttribute(node, "text"),
                ControllerName = XmlUtility.ReadAttribute(node, "controller"),
                ActionName = XmlUtility.ReadAttribute(node, "action"),
                Owner = owner.SymbolicName

            if (!string.IsNullOrWhiteSpace(XmlUtility.ReadAttribute(node, "order")))
                result.Order = decimal.Parse(XmlUtility.ReadAttribute(node, "order"));

            return result;
  1. In your Manifest.xml you can then do the following:
<Item url="/Profile/Index?plugin=ProfilePlugin" text="Profiel" __controller="Profile" action="Index"__ order="0"/>
Hope this will help you.