Hello!

I'm about to install Drupal for a project of mine.
It is a complex one as I have registered more than one domain: the general issue is the same but the different domains should have a different aspect and a different selection from the SAME base of articles. Also, users will be the same on all domains.
I do not want here to speak about the topic so I make a fictious example to explain myself.
Say I wish to speak about insects. I have insects.domain who will contain all the articles. Then ants.domain which will contain only articles about ants and cooperativeinsects.domain which will contain articles about ants, bees and termites. I wish a single database and content administration but the various websites should have different themes. If you access ants.domain if should see also articles on ants but if you search for bees you will be directed to the article on cooperativeinsects.domain.
Is this possible? If not for now, is a module needed and sufficient to do this trick? Is there someone who wants to help me write it, just in case?

(Well, really if this will be ok I will install another instance of Drupal for my E-Commerce site - adapting my scripts: also in this case I have more than one domain, specialized in diverse merchandise categories... sorry, but real world is more complex than most people think :-)

Ciao!

Comments

Meryn’s picture

I understand want you want to do. AFAIK this is currently not possible with Drupal.

I think it would be possible to extend the Drupal multi-site functionality so that one would be able to define some sort of 'taxonomy filter' in the settings file, on a sitewide basis. All node selection queries should confirm to that filter.

It may be that the (tiny) Drupal DB abstraction layer doesn't allow such SQL query rewriting, which would mean that individual modules need to be patched to allow the insertion of such filter (if applicable).

Since we're currently considering moving to Drupal as well, and having the same isssue, I wonder if the Drupal project would welcome a patch that makes this possible.

I'd like a response of a Drupal project leader on this issue.

dublin drupaller’s picture

Hi Kallisti,

not exactly a direct answer to your question, but, my experience may add to your decision making.

Drupal allows you to have multiple sections within the same drupal install. So the users, content etc. is stored in one database and each section can be themed accordingly as if it is on the different sites...

My advice would be to centralise everything from one drupal installation...and maybe check out the sections.module to setup your different areas.

It is possible to have drupal doing the following..i.e. a drupal install on 1 site pulling content from a database on another server....see below..and an example of how the db_url line will look in the settings.php or conf.php file (depending if you're using drupal 4.6.x or 4.5.x)

Drupal site 1 = www.Insectscentral.com
database name = everything
password = crazyfrog

$db_url = 'mysql://everything:crazyfrog@localhost/everythingdb';

Drupal Site 2 = www.antsdomain.com

$db_url = 'mysql://everything:crazyfrog@www.insectcentral.com/everythingdb';

And so on....

That is probably not advised, but workable, as long as you have an identical install of the drupal modules and files on each domain...and you only make site settings type changes on the www.insectcentral.com installation.

My advice would be to check out the way the drupal 4.6. settings.php file is setup..as it might be infinitely easier to just install once and have sections within that site...and point the different domains you have back to a specific section URL.

Hope that makes sense..please post back up here when you have found the best solution. I'm sure that other drupallers will be interested in which is the best approach.

Dub

DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

Meryn’s picture

He asks specificially

the different domains should have a different aspect and a different selection from the SAME base of articles.

That can't be done using seperate databases. Yeah, it could be done, if you would add an entirely new content management system in front which would publish the content to the appropriate db's (one or many).

I think it would be better to address this at the data retrieval stadium, not the creation stadium.

The sections module only acts on the site's theme, not the content selection.

Thanks for the suggestion, nonetheless. :)

Has anybody else any ideas?