More in this section

Forums / Developing with Sitefinity / Add new menu to administration section

Add new menu to administration section

4 posts, 0 answered
  1. Roland
    Roland avatar
    45 posts
    Registered:
    23 Feb 2009
    18 Apr 2009
    Link to this post
    How will I be able to add a new menu under the administration section of the cmsadmin? What I mean is that by default the current menu under the administration section are Permissions, Users, Tool and Services and now I want to add another menu let's say "Custom Menu" and then this menu will have its own page just like the other menus.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    18 Apr 2009
    Link to this post
    Hi Roland,

    Here are the steps that you should follow.

    1. Create a new page which has Admin.master as MasterPageFile

    <%@ Page Language="C#" MasterPageFile="~/Sitefinity/Admin/Admin.master" AutoEventWireup="true" CodeFile="TEST1.aspx.cs" Inherits="Sitefinity_Admin_CmsAdmin_TEST1" Title="Untitled Page" %> 

    2. In the code behind inherit from AdminPage

    public partial class Sitefinity_Admin_CmsAdmin_TEST1 : AdminPage  
    {  
        public override string MenuItemName  
        {  
            get { return "This is a TEST"; }  
        }  
     
        protected void Page_Load(object sender, EventArgs e)  
        {  
     
        }  
    }  
     

    3. Modify Admin.master page

     
        private bool SetCurrentTab(RadTabCollection coll, string value)  
        {  
            foreach (RadTab tab in coll)  
            {  
                if (tab.Text == "Administration")  
                {  
                    RadTab test = new RadTab();  
                    test.Text = "TEST";  
                    test.NavigateUrl = "~/Sitefinity/Admin/CmsAdmin/TEST1.aspx";  
                    tab.Tabs.Add(test);  
                } 


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Roland
    Roland avatar
    45 posts
    Registered:
    23 Feb 2009
    18 Apr 2009
    Link to this post
    Thanks Ivan that's exactly what I was looking for.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Apr 2009
    Link to this post
    Hello Roland,

    I am glad to hear that the provided code helps. Let us know if there is anything else that we can do for you.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered