Not everything in Sitefinity is stored in the database. Pages and content are, but not the controls physical files.
A solution for the content sharing problem is to modify your connection string in web.config. Point all subdomains to the same database server and catalog.
Sharing controls can be done via copy/paste (not recommended) or directory synchronization software (highly recommended). The business logic of a program that copies a directory tree is very simple in .net (not optimized). Here are some of programs that could do it for you:
- rsync (classic method) - a linux tool that is ported to Windows. Detailed instructions are given on the official site.
- very good performance
- free of charge
- somewhat intimidating and awkward console interface.
- depends on the way it was compiled, it may not support paths longer than 255 symbols or unicode symbols in the filepath.
- rsync (windows GUI tool) - the same as above, with a far better user interface. Again, here are the detailed instructions on how to configure and use it
- Allway Sync - a commercial product for backup and synchronization. (almost any backup tool will do, just make it "back up" to the directories you want to sync with). Here is the official web site.
You can also use several providers with the same applicationName. Such content will be shared between the web sites. For example, if you define your News providers with the same applicationName, and your connection strings point to the same database, Sitefinity will "share" the News items between the both web sites. Changes done on one place, will reflect on the both sites.
I hope this helps.
the Telerik team