For those who have been following my recent posts and those who will be reading this into the future i have needed to achieve the following and as of today I have.
I had one portal (SiteA) on domain sitea.com for the purpose of this write up.
SiteA has many different taxonomy terms such as "taxonomy/term/27" which is linked to forums, stories etc relating to Product1 which has its own website (SiteB) at product1.com
SiteA also has the same setup , with taxonomies for ProductB ProductC etc.
No my dilema was having all the content on SiteA but only product Specific Info on the Product Sites.
A requirement was also single login.....
So after many late nights, playing with rss feeds, FOAF.module and seperate databases etc I have come back to the following..........
Drupal has a wonderful multisite function, where you can use a single database and database prefixing which I have done....I have setup the following prefixing in my settings.php for SiteB(The first product Site)
$db_prefix = 'prod1_'
$db_prefix = array(
'default' => '',
'users' => '',
'sessions' => '',
'role' => 'prod1_',
'authmap' => '',
'sequences' => '',
'menu' => 'prod1_',
'node_access' => 'prod1_',
'access' => 'prod1_',
'accesslog' => 'prod1_',
'term_access_defaults' => 'prod1_',
'term_access' => 'prod1_',
'users_roles' => 'prod1_',
'cache' => 'prod1_',
'blocks' => 'prod1_',
'boxes' => 'prod1_',
'search_index' => 'prod1_',
'history' => 'prod1_',
'permission' => 'prod1_',
'variable' => 'prod1_',
);
After this was done, I went to product1.com/?q=admin/settings/
First I turned on clean urls and saved settings and then I went to the option for "Default Front Page" and put in the details relevant to the taxonomy i want to "stream" in this case taxonomy/term/27
I have also setup a custom menu and now when you go to www.product1.com you see the same as www.SITEA.com/taxonomy/term/27 the custom menu links only to this taxonomy and you just repeat the process for other sites.....
Pretty cool really and just what i wanted...........
Comments
Smart. Very smart.
This is way smart hack. You should make it a handbook page. It would be a very nice contribution.
Also, can you share the actual sites when they are ready? I'd like to see this in action.
No dramas,
Just finishing some tidy ups and I will publish the sites.....
Some updates
the most recent was in my page.tpl.php formatting.......
Where the following appears.... in the template file
The following output was appearing in the site
This was creating a major blank space between the tabs & nodes or page titles etc....
I really didnt help formatting at all.....for now i have removed it however it means no help appears either....
the sites
www.natoliracing.com www.ozmotorsport.com.au and www.pcaa.com.au
one db shared user table filtered content with one master site