I have a drupal site with several related domain names pointed at it, and I would like each of the domains to have their own splash page. The front page module seems to come as close as anything but doesn't have this particular feature, could you add it?

Comments

Dublin Drupaller’s picture

Assigned: Unassigned » Dublin Drupaller

I'm not sure if this will work...but, it might be simpler to just use a php snippet in your front page for anonymous users in the following way:

<?php $this_domain = $_SERVER["HTTP_HOST"];?>

<?php if ($this_domain == "www.domain1.com") {?>

----------- your splash page HTML for domain1.com goes here ------

<?php }?>

<?php if ($this_domain == "www.domain2.com") {?>

----------- your splash page HTML for domain2.com goes here -----

<?php }?>

As I say, I'm not sure if that will work...but if it works for you, it's a relatively simple workaround.

I stand corrected, but, I don't think it will be a widely used feature, so instead of adding the feature to the module, can I suggest adapting the front_page.module to display per domain, as opposed to per role type instead?

hope that makes sense...

Dub

Dublin Drupaller’s picture

Status: Active » Closed (fixed)

no response here for quite a while so closing issue. open back up if you're still stuck