I would like to have an option to be able to assign terms to domains. This would be perfect in situations where most terms are common for all sub-domains yet there can be terms specific to a single domain. In a way it is a duplicate of Domain Menu especially if you are using taxonomy+taxonomy breadcrumbs.

I might tackle this myself - any kind of ideas/feedback would be appreciated.

Comments

agentrickard’s picture

Not sure how to handle the "these terms are shared but these terms are not" issue.

nonsie’s picture

Ken, would you care to elaborate?

One example of this would be if you are using Domain to have different subdomains for locations and taxonomy to specify sections of the site. So for example you might have a vocabulary named sections and terms for sections such as jobs, about us ets. You might have jobs section for subdomain1 but not for other subdomains. There's also the issue of cascading domain access from parent term(or even vocabulary?)
I can see people using Domain Menu if they just want to have different menus for different subdomains but once it gets beyond single level architecture it's quite useless.

agentrickard’s picture

I think you misunderstood me. I understand your use case. What I don't understand off the top of my head is how to select which terms would be available to all domains and which would not.

nonsie’s picture

I've been thinking about trying to copy the idea behind i18n taxonomy. I might be completely off here - haven't really started to tackle it yet.

agentrickard’s picture

And, to be clear, table prefixing is not the proper solution here. It is not that you want to share all terms on domains A, B, and D but not on domain C. You want to have some terms that exist on A, B, C, D and others that exist only on D.

I think the solution is a separate table that can be JOINed to the taxonomy tables. Taxonomy queries are affected by db_rewrite_sql(), so you should be able to run additional JOINs if $_domain is a specific value.

Does that make sense?

nonsie’s picture

It makes a lot of sense actually. I'll try to find some time over the next few days to get into it.

agentrickard’s picture

Just remember that $_domain is a global -- so it is available to you at all times. You could also use hook_domainload() to load additional information onto that array.

agentrickard’s picture

Status: Active » Postponed
summit’s picture

Hi Any progress in this field please?

Is there otherwise a way to disable a term on a domain if all nodes in the term are referred to another subsite?
Will taxonomy access interfere with domain access?

greetings,
Martijn

agentrickard’s picture

Version: 6.x-1.0-beta2 » 6.x-1.1

Read the provided documentation regarding multiple node access modules. The answer depends on what you mean by "interfere with."

As to progress, I am not touching any new requests until #298696: * ROADMAP * Please read this first is complete.

summit’s picture

Hi Agentrickard,

I was speaking about drupal 5. And will look into it.
thanks for your answer. I heard you are in Hungary. Enjoy the meeting!!

greetings,
Martijn

agentrickard’s picture

No new features are being added to the Drupal 5 branch. It is not possible to maintain different features for multiple branches.

All new features currently go into D6, and get backported if really useful. This is the same method that Drupal itself uses.

chawl’s picture

How about the ability to rewrite links for some taxonomy/term/% pages to a particular domain at least, a sort of pseudo-association ?

I am aware that this has to be a term level setting and Path Auto, Taxonomy Menu like modules will cause pain, but take this as a thought experiment.

As an example, an "all sites" menu could be created with Taxo Menu, and menu items could still point to their (pseudo) associated domains. This could also be very useful for free tagging indeed. Even if Path Auto had domain awareness, this combination could be the holy grail of a multisite.

Sorry for mentioning other modules but I'd like to cast a useful scenario.

Tx.

agentrickard’s picture

You can try setting 'taxonomy/term/*' or 'taxonomy/term/TID' to a 'special page request' to achieve something like the above.

chawl’s picture

Yes, but all links are rewritten to current domain eventually. You can not send different terms to associated domains by this method, hence single vocabulary can not be used as a united taxonomy.

For example from the same vocabulary, PDA term could point to www.handhelds.net/taxonomy/term/38, LCD could point to www.visualsense.com/taxonomy/term/40. Moreover a menu (or tag cloud, free tags etc.) which could be created from this vocabulary might serve as an annex to navigate users accross member sites.

Sure with careful planning, some can be achieved, but if you have thousands of (hierarchical) terms from several vocabularies which evolve daily with the context of a big member sites network, this may not be a feasable option.

I will try different things with table prefixing, but I am not sure if I can manage something this synergetic.

Thank you.

chawl’s picture

No success at all.

Is this feature request postponed indefinitely?

This seems rather crucial when I conceive the benefits (at least for our scenario) by the way.

agentrickard’s picture

It is postponed indefinitely unless someone else solves it, because I don't comprehend the issue well enough and have no project driving its completion.

xanderz’s picture

StatusFileSize
new11.05 KB

i`am who create this "Domain Taxonomy" (for D6) module and waiting for administration give me access to create this project. Temporary posting module here for testing by community. Instructions are included in README.txt file.

Skirr’s picture

Version: 6.x-1.1 » 6.x-2.0-rc6
Status: Postponed » Needs review

Anyone tested it yet? It works pretty well for me.

mindgame’s picture

StatusFileSize
new1.08 KB

Hi xanderz! A nice module, thanks!
To make it work with views I had to patch the file "views/modules/taxonomy/views_handler_field_term_node_tid.inc" (see attachment), otherwise the sql rewrite has no effect. (I posted a feature request for Views: http://drupal.org/node/483690)

xanderz’s picture

agentrickard’s picture

Status: Needs review » Fixed

Alright, I will add it to the list.

Status: Fixed » Closed (fixed)

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

spicyguy’s picture

Does anyone have clear documentation / tutorial on this module?

My scenario is this:

I installed Domain Access module and setup 3 subdomains. What I want is, when user clicks on Taxonomy term under the blog article, it should go to the subdomain what that term name.

Ex:
www.example.com
alpha.example.com
beta.example.com

Taxonomy:
Domains
Alpha
Beta
Theta

Alpha term should point to alpha.example.com, beta term should point to beta.example.com, etc

drasgroup’s picture

Yes, this is what this thread was started about. subdomains -> taxonomy terms.

IckZ’s picture

anyone who got the "rewrite all terms to a single source" thing to work? At my installation there gets no url rewritten however the term is published to another domain than that one the visitor is viewing...

Is there maybe an other domain taxonomy modul?