Closed (fixed)
Project:
Domain
Version:
5.x-1.0beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2007 at 13:49 UTC
Updated:
17 Dec 2007 at 23:14 UTC
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
Comment #1
agentrickardTo 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.
Comment #2
skizzo commentedI 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
Comment #3
agentrickardYou 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.
Comment #4
skizzo commentedI 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.
Comment #5
agentrickardComment #6
agentrickardDomain Prefix should handle this.