Multisite with lots of shared, but specific data?

dunx's picture

I need a stack of sites based on different sports with their own distinct URLs, but with shared codebase... some multisites sounds ideal. For example:

snowboard.blah.com
ski.blah.com
surf.blah.com

I'm after a little bit of advice on the best way to share data and probably more specifically on how to filter data. I've been trudging up the Drupal learning curve for a few months and have played with a test site, read and watched heaps, but I'm still a newbie (so use small words).

Whilst I could just share the user tables and post relevant stories in each site, what we really want is to be able to post a story and say which sport(s) it refers so. I'm guessing I can do this with Taxonomy. It would also be handy to default this based on the site from which it was posted... I think I've seen how to do this on one of the Lullabot downloads I splashed out on, so I'll have to review those.

So, what I think I need to do is share all tables, add a multi-select Taxonomy field to all node entry pages. Does that sound right?

Then I need to filter the content based on which site I'm at. Does this make sense? Can this be done in Views (can each site have different views of the same data if all the tables are shared?) or can this only be achieved through theming?

Groups:
Login to post comments

Use Domain Access

Boris Mann's picture
Boris Mann - Thu, 2009-06-11 18:54

Use the Domain Access module, it was designed to exactly do this, on one codebase.


Mr Mann beat me to this

Garrett Albright - Thu, 2009-06-11 18:57

Mr Mann beat me to this thread by a minute.

Maybe we should create a sort of flowchart people can use to determine which form of multisite they should use and sticky it in this group…


Flowchart wiki begun

Boris Mann's picture
Boris Mann - Fri, 2009-06-12 06:58

Totally right. Because I'm pretty tired of pasting in the same answers and having the same discussion thread :P

Here we go: http://groups.drupal.org/node/23202


Multi site with OG

MkeHack's picture
MkeHack - Sun, 2009-06-14 18:56

Looked at the link but the first question seems to rule this out is this configuration. Is this true? I think that multiple sites each of which has a unique profile for each of its users who may opt in to one or more interest groups created for the site, seems to be a reasonable configuration.


A flowchart would be

dunx's picture
dunx - Thu, 2009-06-11 22:24

A flowchart would be great.

I'm a convert from PN/Zikula, so knew about "multisites", so that's what I've searched for. Had seen Domain Access mentioned, but often in the context of not being ideal for a particular situation. It's often said to be not suitable probably because I'm seeing it mentioned alongside scenarios where multisites is the best option. I'll take a look.

... okay, that sounds like the thing I want. Not 100% sure whether singlesignon works over multiple domains, but hopefully it is as that's what I need. Fingers crossed.

Many thanks :)


Not 100% sure whether

Garrett Albright - Thu, 2009-06-11 23:14

Not 100% sure whether singlesignon works over multiple domains, but hopefully it is as that's what I need.

Are you asking whether logging in to one site will log you in to all sites? No, you'll have to log in to each separate domain; that's just the nature of how cookies work (though there might be creative ways around that…). But it'll be the same account details, including the same credentials, across all sites.


cookies using domain .blah.com are visible for all subdomains

markus_petrux's picture
markus_petrux - Fri, 2009-06-12 00:08

Try the following in settings.php

<?php
$cookie_domain
= '.blah.com';
?>


I'm interested in a shared

dunx's picture
dunx - Fri, 2009-06-12 09:45

I'm interested in a shared and persistent login for users across a number of TLDs. I want users to seamlessly switch between ski.blah.com and snowboard.blah.com with no interruption to their viewing pleasure.

According to this issue post, this is possible with SingleSignOn, but I haven't tried it yet.

http://drupal.org/node/304257

As I understand it, the settings.php solution provided above is fine for access across multiple sub-domains, but not multiple TLDs.


I have this working as I'd

dunx's picture
dunx - Mon, 2009-06-22 12:43

I have this working as I'd hope now.

http://drupal.org/node/285319#comment-1729230