1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom Module .dll development

Custom Module .dll development

2 posts, 0 answered
  1. Rob Solomon
    Rob Solomon avatar
    1 posts
    Registered:
    22 Apr 2010
    07 May 2010
    Link to this post
    Hi,

    I've been developing a .dll based collection of Custom Modules for Sitefinity. Basically things are working fine but I have two questions when developing .dll based modules:

    1) When I upload the .dll, it appears in the tool collection. However, the name of the module collection is blank and it renders funny in the Sitefinity editor UI - basically just the tip of the arrow is visible (I can forward screen shot is this ins't clear). I'd like to be able to get a name of the module collection up there. I'm assuming this must be some metadata on the .dll assembly. Can you please let me know how to do this.

    2) Also, some of our controls have lots and lots of properties which make using the Control Properties editor a bit confusing since they are all clustered together. I assume there must be a way to group the properties in the properties editor - like some attributes on the properties. Any ideas? Also is there a way to give a "Friendly Display Name" and/or help info on a per property basis? This would help our editors to better understand the properties that they are setting.

    Thanks for any help.

    - Chris
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    09 May 2010
    Link to this post
    Hello Lester Herrington,

    1. I believe that you are referring to custom controls - not modules. So, you could create a ToolBoxItem for your controls and set Section property which is used for getting or setting the section in which the control would be contained in the toolbox

    sample

    namespace Telerik.Samples.WebControls
    {
     
        public class MyControlToolboxItem : ToolboxItem
        {
            
            public MyControlToolboxItem()
                : base(typeof(MyControl))
            {
                base.DisplayName = "some name";
                base.Description = "some desc";
                base.Section = "CustomControls";
            }
        }
    }


    2. You could use System.ComponentModel.CategoryAttribute to create group of properties and divide or put together them.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered