Multisite that's really a single site with themes/domains question -- and consultant needed

Events happening in the community are now at Drupal community events on www.drupal.org.
samcohen's picture

Hi all,

A nonprofit client wants separate sites for each campus program they run. Each would have its own domain and its own theme.

But, it really needs to be the same database/site, because cck/views is going to be used intensively to do a lot of cross campus data gathering.

My thinking is to do a multi-site installation where each site uses the same database, and I park each domain over a subsites.

Or I'm wondering if it makes more sense to add some custom code that basically looks at the domain being used and then sets the theme based on it.

I realize that either way this will create problems, when, for example, node/15 belongs to site1.com and someone enters site2.com/node/15 and sees that page. I also need to do this is Drupal 5, because it's going to need a few modules that haven't been ported yet.

Can anyone advise what they would do in this situation?

Also, I have a budget to hire some outside consulting on this project. If you have a good grip on multisites and dns stuff and are available to do some consulting, please send me an email at sam@samcohen.com

Thanks,
Sam

Comments

theme part

thomas23's picture

Just a quick note:

Or I'm wondering if it makes more sense to add some custom code that basically looks at the domain being used and then sets the theme based on it.

If I get you right this could be done easily by using one sites/folder for each domain, eg. sites/domain1.tld, sites/domain2.tld, ... and in settings.php use key

$conf = array(
   'theme_default' => 'your_theme_name',
);

to the theme you want to use for that domain.

Have a look at $db_prefix = array( to set database prefixes on a per table basis.

Cheers.

Domain Access

agentrickard's picture

See http://drupal.org/project/domain

It may be more than what you need, but it was designed for this sort of thing.

--
http://ken.therickards.com/

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: