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

Forums / Developing with Sitefinity / Plugable Module, implementing the Control Designer

Plugable Module, implementing the Control Designer

6 posts, 2 answered
  1. Trevor
    Trevor avatar
    17 posts
    Registered:
    06 Sep 2010
    20 Oct 2010
    Link to this post
    I have created a working inter-site module with a functional control designer but now I am trying to integrate it into a plugable module (based on the generic content module) but I'm struggling to get it up and running. I've integrated the code but the control does not show up when I click edit on the module. Is there anywhere some sample code demonstrating a plugable module making use of the designer control. I am also not sure if I could take advantage of the Generic Content Views.

    I would really appreciate assistance in the right direction.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    20 Oct 2010
    Link to this post
    Hello Trevor,

    You can check out this series of blog posts which explains how to work with control designers. I have also attached a small sample project with a control and a control designer wrapped in a code library project. You can build the project, and use the control upload functionality to upload the output dll which will add the control to your toolbox.

    Greetings,
    Radoslav Georgiev
    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
    Answered
  3. Trevor
    Trevor avatar
    17 posts
    Registered:
    06 Sep 2010
    20 Oct 2010
    Link to this post
    Hello Radoslav,

    Thank you very much, it all makes a lot more sense now. I am just running into one error that I am trying to trouble shoot. Would you maybe have some insights into this problem?

    The relative virtual path 'CustomModule.Test.Resources.ControlTemplates.Backend.TestDesigner.ascx' is not allowed here.


    Thank you again for your quick assistance!
  4. Trevor
    Trevor avatar
    17 posts
    Registered:
    06 Sep 2010
    20 Oct 2010
    Link to this post
    Ah, found my fault. I was referencing the LayoutTemplatePath as CustomModule.Test.Resources.ControlTemplates.Backend.TestDesigner.ascx directly. I corrected it based on the code you provided by specifying the layoutTemplateName and then using base.LayoutTemplatePath = value; in the LayoutTemplatePath.

    Thank you very much again for your assistance! This has been driving me up the wall.
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    20 Oct 2010
    Link to this post
    Hello Trevor,

    It seems that you are trying to set the LayoutTemplatePath property for your designer. You should set this value to the LayoutTemplateName. That is if you are working in a code library project which builds into a dll. If you are creating an intra site control you should use application relative path and set the LayoutTemplatePath property.. Also make sure the build action for the .ascx file is embedded resource.

    Regards,
    Radoslav Georgiev
    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
    Answered
  6. Trevor
    Trevor avatar
    17 posts
    Registered:
    06 Sep 2010
    20 Oct 2010
    Link to this post
    Hi Radoslav,

    That's brilliant thank you for the further explanation. Now to move on to my next challenging bit of code! Thanks again!
Register for webinar
6 posts, 2 answered