Hello i have been trying to do this for years with no success. Ive looked at 1000 posts and threads discussing similar things but they all seem to be about creating node views but i only want to show a simple term view on the taxonomy/term/%. Related terms which ive related via the taxonomy/term/*/edit-term page.

Am i missing somethign real simple that no one even bothers to discuss? :unsure

Ive tried every kind of Relationship/Argument combination there is but still i am unable to display a link to the term 'white setter' from the 'black setter' page which it is related to.

Could anyone put me out my misery?

Thanks

Comments

barraponto’s picture

Title: Simply Show Related Terms on Tax Home Page » Related Terms relationship handler is broken
Category: support » bug
Priority: Normal » Major

I guess I just came across this while answering your question in drupal.stackexchange.org: http://drupal.stackexchange.com/questions/49031/show-related-terms-block...

The issue here is that Views' Related Terms relationship handler is broken. Core stores relationships between taxonomy terms in the term_relation table, using fields tid1 (the "source" term) and tid2 (the "related" term). This is not a core bug since taxonomy_get_related() does a proper query. But Views handler is trivial, and only checks for related terms (tid2) that have the queried term as the source term (tid1).

So if you build a Related Terms block, it only works one way (will display "funny" term in "comedy" term page, but not "comedy" term in "funny" term page). This means that this functionality is completely broken, and didn't work at all in 6.x-2.x nor 7.x-3.x. Thus, tagging as major.

fadgadget’s picture

thanks very much barraponto. your view works great barr the broken handler. If this can be fixed then eveything ive ever wanted or needed will be working as i had hoped.

Actually now i see that it does work as hoped but only if i edit each of the related terms and resave them.

barraponto’s picture

My experience is that saving term 1 will put [:tid1=>term1, :tid2=>term2] in term_relation table, and saving term 2 will OVERWRITE it with [:tid1=>term2, :tid2=>term1], so you will only have one display working, ever.

fadgadget’s picture

I am finding that myself barraponto. Very frustrating. If i edit a term then i lose the relationship as you say. Its been a major problem for me all night. Im leaving it for now but i hope someone comes up with something. Truth be told ive loads of other probs so i cant really give this all my attention. sorry (i wouldnt be much help anyway) :(

fadgadget’s picture

hello im back to look at this. Ive had to turn PHP filter off on my site to save resources. Was this ever fixed? Can it be fixed?

thanks

barraponto’s picture

Maybe there's some reusable logic here: http://drupal.org/project/synonyms
(but I moved on from D6, and the term synonyms feature has been removed from D7 Core)

fadgadget’s picture

thanks barraponto. Ive since moved onto D7 and still trying to get my head about taxonomy fields but i think it will do the job better for me now. thanks for your help.

Chris Matthews’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue