Sub Item on Config

Vote:
 

Is possible create a sub item look like ["System Configuration", "Property Configuration", "Security", "Tool Settings" ] ?

Is possible create a new Tab look like ["Admin", "Config", "Page Type", "Block Type"] ?

#75894
Oct 10, 2013 8:19
Vote:
 

If I interpret you correctly you are talking about the tabs in the left side pane when you go to Admin mode.

When defining Admin plugins in code you decorate your class like this:

[GuiPlugIn(DisplayName="My custom plugin", Area=PlugInArea.AdminMenu, Url ="~/Plugins/MyCustomPlugin.ascx")] 

As far as I know it's only possible to place your plugins in the currently supported PluginAreas. Which means you can't define new tabs or sections under each tab. 

As of EPiServer 7.1, you can put your plugins in the following places in Admin mode:

  • In the "Tools" section under the Admin tab, using Area=PlugInArea.AdminMenu
  • In the "Tools settings" section under the Config tab, using Area=PlugInArea.AdminConfigMenu
  • Or in the "Scheduled tasks" section under the Admin tab, by decorating your class like this:

[EPiServer.PlugIn.ScheduledPlugIn( 
    DisplayName = "My scheduled job", 
    Description = "A scheduled job", 
    SortIndex=1)] 

See more about PluginArea in the SDK http://world.episerver.com/Documentation/Class-library/?documentId=cms/7/3e82ada9-d4b6-1cbe-a392-bb241fff094e

 
#75900
Edited, Oct 10, 2013 12:02
rizwansegana - Apr 27, 2021 13:54
Hai Arild ,
I need your help , where we add this i am struggling with that sub menu issue that where i add your code mentioned
below.
Arild Henrichsen - May 21, 2021 13:12
@rizwansegana: Here are some helpful blog posts on creating an Admin plugin:
- in Webforms (the traditional, but outdated way): https://www.jondjones.com/learn-episerver-cms/episerver-developers-tutorials/episerver-admin-plugins/episerver-how-to-create-a-custom-admin-plug-in-in-less-than-5-minutes/
- in MVC (recommended - at least until the Admin view is replaced in .net core): https://blog.novacare.no/creating-episerver-admin-plugins-using-mvc/
Vote:
 

Thanks Arild

#75914
Oct 11, 2013 6:41
Vote:
 

As an alternative to the Admin menu you could add your plugin as a global menu item (next to Dashboard, CMS etc):

http://sdkbeta.episerver.com/SDK-html-Container/?path=/SdkDocuments/EPiServerFramework/7/Knowledge%20Base/Developer%20Guide/OnlineCenter/OnlineCenter.htm&vppRoot=/SdkDocuments//EPiServerFramework/7/Knowledge%20Base/Developer%20Guide/#Navigation

Just remember to keep the amount of global menu items to a minimum (avoid overcrowding) and set necessary security to avoid editors messing with tools not meant for them.

#75930
Oct 11, 2013 13:17
Vote:
 

YET another possibility, if you're willing to do a dirty hack, is to edit the file C:\Program Files (x86)\EPiServer\CMS\7.0.586.1\Application\UI\CMS\Admin\menu.aspx, which contains markup for the entire Admin menu. You could easily place a link to your plugin here, or add markup to create your own section.

Be warned that this will affect all sites on the same server, though.

#75951
Oct 11, 2013 20:53
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.