Anybody know of a way to assign a term filter to an entire subdomain (which is part of a multi site install with all content shared in a single database).

I have one main site and several subsites.
mainsite.com
sub1.mainsite.com
sub2.mainsite.com
etc.

The main site shows all the content. The subsites should show only content that includes a certain taxonomy term (Vocabulary: websites, Term: sub1, sub2, etc). I first tried MySql views of the node and some other tables but that created some ugly problems. Then I thought I would just point the frontpage of each sub site to the appropriate term (which works) and manage the navigation but the more I dug into that the more complex it got, especially with freetagging. The best 'hypothetical' solution I've come up with would be to add a term variable to the settings.php and then everything in that subdomain would have to have that term to be shown, a giant sitewide filter of nodes and search.

I'm just looking for help in pointing me in the right direction on this one or being told that is a completely outrageous and impossible to do. Thanks in advance.

Comments

jayv’s picture

Just to update how I resolved this issue. I ended up having all sites share all tables except have unique taxonomy access permissions table. Then I just set different permission levels per site so only content with a specific taxonomy term would be available on a given site.

summit’s picture

Hi,
I am on drupal 4.7.6 and use the category module for taxonomy purposes.
I tried the same, but got a user error because the Taxonomy Access Module checks the node_access table also.
To not share the node_access table is in my perception not sharing content anymore.
How did you resolve this issue. Or did you simple set the taxonomy access permissions by hand in the database?
Please tell very specific what you did, because I think this is an issue what more people have.
Thanks in advance?

Greetings,
Martijn