Hi there,
I am running about 50 portals which I want to convert to Drupal. I am trying to use a single installation for all sites and I want to use the host name (ie, www.mysite.com) to filter the views based upon a predefined taxonomy. So, I want to extract mysite from the server name (eg, $_SERVER['SERVER_NAME']) and then use this as an argument to filter the view based upon taxonomy. Is there any way to do this with views?

Comments

dawehner’s picture

You could add a argument for taxonomy, and provide a default argument value with php using $_SERVER['SERVER_NAME']

merlinofchaos’s picture

Status: Active » Fixed

Try the domain_access module which does this kind of thing.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.