More in this section

Forums / Developing with Sitefinity / Extend Admin Section

Extend Admin Section

4 posts, 0 answered
  1. Joel
    Joel avatar
    4 posts
    Registered:
    24 Oct 2007
    24 May 2008
    Link to this post
    I'm looking for a way to add some tools under Administration tab in the Sitefinity Admin site.  I found the Admin,master page to use, but adding items to either the top nav (ie Users, Permissions, Services, Tools, MyItem) or the side nave under the tools tab did not seem to be very straight forward.  I know I could create a module, but did not want to do that for just one button.  It was also an item that seem appropriate for the administration| tools section.  Thanks.

    Joel
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 May 2008
    Link to this post
    Hello Joel,

    In order to add a tool in the administration section, your custom control must inherit the ITool interface. The tools are similar to the modules architecture. Here's short description of the interface :

        public interface ITool 
        { 
            string Name 
            { 
                get
            } 
     
            string Title 
            { 
                get
            } 
     
            string Description 
            { 
                get
            } 
     
            Control CreateControlPanel(TemplateControl parent); 
        } 

    Name, Title and Description: these properties define the way your tool will be defined in the tools menu.
    Control CreateControlPanel(TemplateControl parent): a method for creating the control panel of the tool, here goes your custom control, that would be shown when your tool is accessed.

    You could also refer to the Developers ManualTools -> Implementing Custom Tools.
    Once your tool is ready, you have to declare it in the web.config file, section <tools>, and place your code in App_Code directory, so it could be executed on startup.

    Don't hesitate to contact us again if you have any other questions.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    01 Sep 2008
    Link to this post
    hi,
     
    I have created a page called Groups.aspx that implements almost exaclty the same UI (and functionality) as Users.aspx page except that it works with only a set of roles and I want it to appear in Administration's tab as well. I have used the same Admin.master file as Users.aspx but I'm having trouble adding it to the nav under Adminstration tab.

    Please tell me how to do it.. Thanks
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Sep 2008
    Link to this post
    Hi Zubair,

    Please, note that you need to create a custom control that implements ITool interface and not a page (.aspx).
    For your convenience I have attached a full example demonstrating how to achieve the required functionality. To test it you need just to put the control in ~/App_Code folder and register the class implementing ITool interface in the <tools> section of the project web.config file:

    <tools> 
         ... 
         <add type="MyNamespace.CustomTool, App_Code"/> 
    </tools> 

    The tool will appear under Administration > Tools tab in the Sitefinity Admin part.

    Do let us know if you need any further assistance.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered