Having different Stories showing up on different subsites is great.
I see it can be done for Forum Topics as well...
But how about Container/Forums themselves?
I would like to have a specific Forum show up in each subdomain.
Any suggestion for doing that (possibly bringing in other modules...).

thanks...

Comments

agentrickard’s picture

Category: support » feature

To have the containers be different, I believe you have to use table prefixing on the {forum} table.

I'm planning a module to handle such requests, but have not yet started it. See the brief on Domain Prefix on the module home page.

If you'd like to lend a hand, that would be great.

skizzo’s picture

I regret to say that, not being a programmer, I cannot lend a hand.
All I can do is to do some testing... and I will.

When you mention "table prefixing on the {forum} table", you mean that
I should use multiple settings.php files, with different $db_prefix, right?
Can that scheme be used along with Domain Access?

thank you

agentrickard’s picture

You don't need multiple settings.php files.

You just need select table prefixing depending on the active domain. A single settings.php file can handle this.

We have some unreleased code for this that we use on Skirt.com, but I'd like to clean it up before releasing it.

The problem is that the $_domain global isn't set when settings.php is loaded, nor are the Drupal db_query() functions available. So you have to insert some raw PHP to handle the database query.

However, we might be able to do that prefixing inside hook_init() instead of settings.php -- but that hasn't been tested and might not work.

skizzo’s picture

I see... to some extent II understand what you are saying,
but jumping into it is beyond my capacities.
I will wait for the Domain Prefix development.

agentrickard’s picture

Status: Active » Postponed
agentrickard’s picture

Status: Postponed » Closed (fixed)

Domain Prefix should handle this.