Installation and deployment
Version 7.x > Installation and deployment > Where place user controls' .ascx files for export? View modes: 
User avatar
Member
Member
bdrenner-new42 - 2/5/2014 11:43:30 AM
   
Where place user controls' .ascx files for export?
I'm reading about folder structure and export/import, and I have a question: Where should I place the file(s) for a user control that is not registered as a web part? Does the appropriate location change based on whether it's used on a specific site's page templates versus multiple sites' page templates?

So far, here's what I'm thinking, based on the documentation: If the user control is only for a particular site's page templates, then it belongs in `~/SiteCodeName`. If it is used in multiple sites' page templates, then it belongs in '~\CMSGlobalFiles`. Am I on the right track?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/6/2014 11:56:01 AM
   
RE:Where place user controls' .ascx files for export?
You are correct. Use the /SiteCodeName if specific to the site, use /CMSGlobalFiles if not site specific. It doesn't matter where you are in the content tree, the templates know where it is located physically and will display it as needed.