Elijah
-
1/24/2009 9:30:15 AM
RE:Master Page, CSS overwrites with each new site
First, I would recommend a different configuration. Since you're using the same database for each site, but different file roots, that seems to me like it could cause some interesting problems regarding the CMS itself (expecting to find files it has referenced in the database, but depending on the site that's running, it is a completely different set of files).
Kentico supports multiple sites with a single installation. Since you're using one database, that's what I'd do.
To do this, you can set up multiple sites in IIS, but point them each at the same file root. You can still change your IIS settings individually per site (for error pages and so forth).
By the time Kentico receives the request for a web page, it will look at the hostname requested and start the appropriate site.
As far as the import, you need to make sure you uncheck the appropriate items during import that you don't want to be overwritten. Unfortunately, you can't select each individual page, but you can choose whether or not to import documents (all or none), templates, layouts, css style sheets, etc. Anything that remains checked will get overwritten.
I will admit though, creating a new site is a bit of a tricky process when you have a site already in the same database. I'd rather see a "new EMPTY site" option so my existing css/templates/web part containers/etc. don't have a chance to get overwritten, AND those preset items don't get imported either.
I've mentioned this to Kentico and they did say they're considering including an "empty" template in a future version.
Hope this helps, Elijah
|