More in this section

Forums / Developing with Sitefinity / Some Quick Questions

Some Quick Questions

6 posts, 0 answered
  1. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    25 May 2007
    Link to this post
    I just got SF3.0 installed and created my first project.  The list module really looks nice and flexible.

    Some things that I notice are missing.  I didn't see a developer's guide on how to plug in custom controls, modules, etc (do we still have to put those lines in the web.config to add custom controls?) and I don't see anything about how to upgrade from the RC versions of SF 3.0. 

    Help?

    Thanks,
    Craig
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    25 May 2007
    Link to this post
    Hello fregas,

    Please find the upgrading instructions on page 26 of the User Manual: Upgrading Projects from Previous Sitefinity 3.0 Versions to Official Release Version.
    Let us know if you experience any problems or if you need any assistance.

    Adding custom and user controls is through the Add Controls Toolbox > Upload a control dialog. (in Edit Page mode)

    For information on plugging in a custom module, please visit:
    http://sitefinity.wordpress.com/tag/building-a-pluggable-module/

    Best wishes,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    25 May 2007
    Link to this post
    Thanks for the info.  I'll look those up.

    is there a way to just add the controls if they already exist in the VS.NET solution?
  4. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    28 May 2007
    Link to this post
    Hi fregas,

    You could add controls in three ways, programmatically, from the web.config or through the control uploader from edit page.

    Adding controls programmatically is possible if you are inheriting IWebModule interface. Therefore you could define your controls from the Controls property.

    You are already familiar with adding controls from the web.config. Anyway, I am referencing the syntax.

    User controls:

    <add name="My User Control" section="Generic Controls" URL="~/YourUserControl.ascx" description="some descriptive text" overrideToolboxItem="False" />

    Custom controls:

    <add name="Custom Control" section="Custom Controls" type="Namespace.ClassName, AssemblyName" overrideToolboxItem="False" />

    Perhaps other way to add controls would be to change the database directly which I do not recommend you unless you know very well what you are doing.

    Regards,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    29 May 2007
    Link to this post
    I will probably continue to use the web.config method of adding custom controls that are not part of a module.  The IWebModule I believe requires me to create a module that will show up in the admin under "Modules" and I don't necessarily want that.

    Is there some other way to programmatically add controls?  Something along the lines like CmsControls.ToolBoxControls.Add ( myToolBoxItem ) ?

    Thanks,
    Craig
  6. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    30 May 2007
    Link to this post
    Hi fregas,

    Sorry for misleading you. It is not necessary to inherit from IWebModule interface. You could change the CmsHelper.ToolboxControls collection as all the toolbox controls persists there. Here is a sample:

    KeyValuePair<string, CmsToolboxItem> pair2 = new KeyValuePair<string, CmsToolboxItem>("bulleted list"new CmsToolboxItem(typeof(BulletedList), "MyControls"));  
    if (!CmsHelper.ToolboxControls.ContainsKey("bulleted list"))  
        CmsHelper.ToolboxControls.Add(pair2);  
     

    Hope it helps.

    All the best,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
6 posts, 0 answered