Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2009 at 15:14 UTC
Updated:
30 Oct 2009 at 17:20 UTC
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
Comment #1
dawehnerYou could add a argument for taxonomy, and provide a default argument value with php using $_SERVER['SERVER_NAME']
Comment #2
merlinofchaos commentedTry the domain_access module which does this kind of thing.