So I kind of lost my filtering (was playing with taxonomy_term view, its depth etc.) and cannot resolve it working.
I'd like nodes to be filtered by three taxonomies: Applications, Manufacturers and Categories as an AND filtering (I have Multi Term Views installed, even reinstalled it), it used to work for me, but it stopped...
I need term depth as well so for example taxonomy hierarchy: COMPUTERS > EMBEDDED COMPUTERS > SODIMM PC when I click on COMPUTERS I see all the nodes under SODIMM PC term. That's why I set depth to 10 and allow multiple terms in taxonomy_term view : "[x] Allow multiple values - If selected, users can enter multiple values in the form of 1+2+3. Due to the number of JOINs it would require, AND will be treated as OR with this filter.") and the depth is working, but filtering is still working as na OR not an AND selection, although node counts in parenthesis show correct numbers - when I have nodes under SODIMM PC (Category) and under INDUSTRIAL (Application) when both are checked in Refine Block I should see only the ones with SODIMM PC and INDUSTRIAL, but I see SODIMM PC or INDUSTRIAL nodes...
I hoped Multi Term made it always AND filtering... So I basically need someone to tell me how to exactly set the taxonomy_term view for depth and AND filtering correctly.
The second issue is (on the picture) that the Page Title that consists of terms I've chosen in Refine Block don't translate to the current language (terms are localized...) - I am not sure whether it is Taxonomy Filter issue.
I'd be happy for any help :) I tried resetting taxonomy_term view as well and setting everything from the beginning but all the time I get the OR filtering :/
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | taxonomy_term.txt | 5.72 KB | czaku |
| #4 | tf-translated.png | 71.01 KB | solotandem |
| screen.jpeg | 250.36 KB | czaku |
Comments
Comment #1
czaku commentedNow i made reset on taxonomy_term view and I got the AND filter working, but the depth is not working... :/
Comment #2
solotandem commentedBefore you reset the view, had you renamed it or anything else? Could you export the view that fails and attach the file?
Are you looking for depth to be controlled by this module or views?
Comment #3
czaku commentedWell this is my view exported:
I havent renamed it, I would like the depth work at all, but have no idea how to fix this...
Comment #4
solotandem commentedIs this the view that works or does not? If the content display includes the "OR" group of items, then the alter hook in multi-term views is not working (i.e. it may be being overwridden). Can you confirm it is being called and what the altered views query is?
You wrote:
"I need term depth as well so for example taxonomy hierarchy: COMPUTERS > EMBEDDED COMPUTERS > SODIMM PC when I click on COMPUTERS I see all the nodes under SODIMM PC term. That's why I set depth to 10 and allow multiple terms in taxonomy_term view."
Why do you set depth to 10? Do you understand depth to refer to terms in a hierarchy? Depth would restrict the terms included to those within 10 of the current term(s) based on hierarchy. Is your vocabulary that deep?
I have attached a screen shot of my development site with translation taking place. Note the URL has the "fr" language code added to it: http://tf.loc/fr/taxonomy/term/21. (Also, the words are pseudo-French, simply for testing.)
Comment #5
czaku commentedActually I sorted that out, when I disabled Multi-Term Views module it all started working again. So this module has an issue with views in producing term depth..
So there are three cases I tried (all modules the newest dev versions)
1. newest case - Multi-Term Views disabled
- everything from Views working (depth is working clicking on parent term i see content from child terms), Taxonomy Filter also working, but while Multi-Term Views is off its doing OR filtering
2. no depth - Multi-Term Views enabled
- using taxonomy_term view (built-in modified for taxonomy filter use) i get proper AND filtering but no depth
3. no AND filtering - Multi-Term Views enabled
- using view taxonomy_term_copy (copied taxonomy_term) i get not proper OR filtering and depth working
so there might be an issue with built in taxonomy_term view or sth - problem is when I want AND filtering I don't have depth and opposite in all cases...
i set 10 just because its max, but i tried with lower and its not working, for example with 3 its the same case as above
well the titles dont get translated, they are translated when there is no view "taking care" of taxonomy terms - then I get Computers in EN instead of default Komputery in Polish, but then I switch on this view for multiple filtering by taxonomy filter and there are no translations. I want to make sure you know my terms are not "per language" but localized, its also a huge, unsolved yet problem to make pathauto module create paths for both languages (it just makes one default path for all the languages in default language for localized terms...) so i think that translation issue is somewhere between i18n and views... you just make the title consist od few terms... if you could get them localized like from token [term:i18n-name] then it might start working... but i am new to drupal coding so you know the best way to play with it...
but as I see on your picure the title is in english "term #21" (just below accueil) and it is supposed to be in french...?
thanks for the huge help so far :))))
EDIT:
so i tried again, created new view as a taxonomy_term clone - everything is the same as I wrote above, with all ctools, variable, token, taxonomy filter, multi term views, i18n, i18n views etc newest dev versions...
Comment #6
solotandem commentedI suspect you hit on it being the depth parameter. The code in multi-term views is probably not written to cover this use case. Let me look into this.
Regarding my screen shot, only some of the strings have been translated. All those that have been are displayed properly.
Comment #7
solotandem commentedSee #1315644: Does not work with taxonomy depth parameter. The depth issue should be fixed, although you should test it to see if the content items agree with the depth parameter. Post any problems on the referenced issue for the Multi-Term Views module.
The page title is not set by this module, but by the Views module, so you will need to file an issue there.
Comment #8
czaku commentedNothing is changed :( the problem stays... Maybe I have something wrong with view setting? In taxonomy filter listing depth is set to all but it doesn't have anything in common? I did try with different values of this field... but it's aboyt taxonomy not node depth, isn't it?
Here is my view now with depth set to 3 (AND filtering works...):
Comment #9
solotandem commentedDid you get the latest dev release for Multi-Term Views dated today?
The taxonomy filter listing depth does not do anything; its never been reimplemented since 5.x branch.
Please attach the files instead of pasting them into the issue.
Comment #10
czaku commentedYes of course I have the latest dev version.
I also made yesterday clean install with latest views, ctools, etc, and now after you released multi term views added there filter and multi term, the same issue, depth set to 3 and there are no terms under parent term, but AND filtering works, when I switch off the multi term views depth works but I have OR filtering.
I attached the view from clean installation.