More in this section

Forums / Developing with Sitefinity / Common custom controls across sites

Common custom controls across sites

3 posts, 1 answered
  1. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    11 Feb 2010
    Link to this post
    Hello,

    What would be the most efficient method to share custom controls between different Sitefinity projects? We plan to have multiple sites with similar functionality, and in many cases, controls will need to be identical. There is the potential to have more than 10 different sites with the same controls, so if a control is updated, it will need to be updated for all sites at the same time, and ensuring that 10+ folders have identical content would not be ideal.



    Thank you for your support,
    David
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Feb 2010
    Link to this post
    Hi David,

    This could be achieved in development environment if you work with SVN or TFS where you can get the latest version of a file. Otherwise you cannot be sure for the content of an file you have and whether something has been changed. Another option is creating a virtual directory in your IIS and put the controls there. Then each application should use them from this virtual directory. Here is a link that explains some steps - How to Share User Controls Across Applications 

    Kind regards,
    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.
    Answered
  3. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    11 Feb 2010
    Link to this post
    Thank you for your swift response.

    We were considering using a virtual directory for this, so it's good to know that you confirm that it will work correctly.

    Once again, thank you for your support.
    David
Register for webinar
3 posts, 1 answered