Module announcement: og_sites,providing multisite features

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

[Reposted from the Drupal development list.]

An early preview release of a module that may be of interest to developers and to anyone using multisites.

OG Sites enables a multisite configuration in which a central 'hub' site has a number of associated sites. The hub site features content and users from all sites, while each associated site can access only its own data (plus content explicitly shared from the hub site).

This is accomplished through organic groups. Each associated site gets an organic group on the hub site. When content is created on an associated site, it gets assigned to that site's organic group on the hub site (and ditto for users). This association is the basis for determining access.

Some features that may interest developers, and may be applicable/adaptible elsewhere:

  • The code is structured to have plugins by module. For example, node support is in node.inc, user support in user.inc. New module support can be added through a new plugin, which will be automatically detected and loaded if the module it implements is available.
  • Tables are shared dynamically (using hook_init()) rather than through configuration in the settings.php file.
  • The install functions automate node type and node creation. The og_sites_hub install function creates a new content type, assigns it as an organic group type, and then creates a node for the group. The og_sites install function creates an organic group node on the hub site.
  • Access is limited through various means: hook_menu() for menu item overrides, hook_db_rewrite_sql() for node access, hook_form_alter() to reset the rows in admin tables.

For more information, see the README:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/og_sites/READ...

Any reviews or feedback through the issue queue or privately by email would also be greatly appreciated.

OG Sites is produced by CivicSpace and development is sponsored by Alpha,
alpha.org.

Comments

Any progress or alternatives to this?

krynsky's picture

I currently have a desperate need for a solution that sounds similar to what this module aims to provide. I have a main site, and need to create a few sub-sites, each with their own theme, but I want to share some of the content types. Basically these new sub-sites (utilizing views) would display filtered content that's lower in the taxonomy heirarchy yet the main site would display all content created (for certain content types).

Each sub-site would also have other unique navigation and nodes available solely on each of their respective sites.

I also need a single user profile to work across the main and sub-sites

Make sense?

Since I don't believe the multi-site module supports shared content, and orgranic groups doesn't sound like the right solution, I was wondering what might be?

Thanks for your help.

Mark

I think this is what you're

aaryn015's picture

I think this is what you're looking for krynsky

http://drupal.org/project/og_sites

Haven't tried it yet, just found it.

Multisite

Group organizers

Group notifications

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