More in this section

Forums / Developing with Sitefinity / dashboard buttons for modules

dashboard buttons for modules

3 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    17 Nov 2008
    Link to this post
    After creating a custom intra-site module, I see that a button is added to the dashboard page showing "Create XXX" where XXX is the module... how can I disable and/or edit this feature? Some modules I make don't allow for creation of items. I may also want to have the button jump to a different mode of the module, or just to the module itself (instead of insert mode).

    how is this done? thanks!
  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    09 Sep 2007
    18 Nov 2008
    Link to this post

    Hey SelArom,

    There is a code-behind file for ~/Sitefinity/Admin/Default.aspx.  Open the following file:


    ...and look for where the Modules get bound to the "repeaterModules" repeater.  It's a bit hacky but you could probably just append a little code to filter your custom modules.

    Change the following code:

    foreach (IWebModule module in ModuleManager.GetWebModulesValues())  
        if (module is SecuredModule && ((SecuredModule)module).CanCreate())  

    foreach (IWebModule module in ModuleManager.GetWebModulesValues())  
        if (module is SecuredModule && ((SecuredModule)module).CanCreate() && module.Name != "MyCustomModuleName")  

    Hopefully this helps.

    Gabe Sumner

  3. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    19 Nov 2008
    Link to this post
    Hello Gabe Sumner,

    Thanks Gabe!
    Josh, let us know if you need further assistance on the matter.

    Sincerely yours,
    the Telerik team

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