I am confused on how to use this module. TVI is a little buggy, so I gave this module a shot.
I have two vocabularies that I want to be displayed using two simple views.
Do I need to set the paths on the views to override /taxonomy/term/% ? Do they have to be block views? Does the view know based on alias (pathautoed vocab and taxonomy path) how to react?
What I am experiencing is only one of the vocabulary's are displaying correctly. The other shows "Page Not Found" - because it is not passing the validators on the other view. So what is happening is View A and View B are set to Vocab A and Vocab B. The views are setup just like the default Taxonomy view (only different field classes and fields). Vocab A shows View A just fine. Going to Vocab B tries to show View A (even though it is NOT configured that way) and get a Page Not found.
Am I using this module correctly?
Comments
Comment #1
codycraven commentedKevin,
Using any module (Panels, Views, etc) that overrides taxonomy/term/% will cause this module to not function. So if you have a Views page set to that path disable the View or change the path to prevent overwriting. You may have to flush your caches at this point (available at /admin/config/development/performance )
Then follow these steps:
Marking as fixed, feel free to re-open if you need more clarification or encounter issues.
Comment #2
kevinquillen commentedSo what you are saying is, you cannot use this with a Page view that uses a path, because aliased terms still point to a system path of /taxonomy/term/%tid (this is how TVI works and is why I got confused).
Okay, next question.
My view has tid argument like the default taxonomy term view. I have it set to override the title to be (term %1) Listings, thogh Listings never appears. Thoughts?
Comment #3
kevinquillen commentedNow I have View B and Vocab B working fine, Vocab A just shows a blank page with a Views pager, and no content, despite being identical to the other view...
Comment #4
codycraven commentedNote, This response was written to #2, Kevin's #3 was posted whilst I was writing this response:
You can use this with Views pages, just not Views pages with that specific path.
As far as your next question, the tid argument will be passed to the View's display that you select from Taxonomy Display as it's first and only argument. I just setup an instance using the standard Views term page (I set the page's path to /taxonomy/term/not-used to not conflict).
I then went to the taxonomy display configuration page and did the following:
I then went to one of my terms in the vocabulary that had associated content and the View's display was being used (it even provided it's own RSS feed since it is attached in the View).
If you are doing this same thing, which I think you are, and you are not getting any results on the term page then go to your View's edit form under the display you selected for presentation and in the Auto preview box enter the tid of the term you are testing on. If you do not get any results then your issue is either with your Views configuration or the term not having any content associated with it.
If your view does return results and your taxonomy page is still failing to display results please let me know additional details.
Also as a note, the title you select in the View will not appear on the taxonomy term page as that is generated from the term in the Drupal core manner, not from Views. I can see some benefit in adding the ability to override the title's display and will look at adding that in the future, if you would like you can create a feature request for that.
Comment #5
kevinquillen commentedFound the issue. My one view uses a Image field as one of the display fields. The one that is working is not using a Image.
When I removed the Image field from the display, the view worked. However I need this to be in the display.
I tested this by creating a completely new view. It worked, up until I added the photo.
Note: simply excluding the field had no effect. I had to remove it from the view entirely.
Comment #6
codycraven commentedKevin this is sounding like a bug in Views or a problem in your View's configuration. Try to use the preview box in your View's edit page, if it doesn't work there it's unrelated to Taxonomy Display.
Comment #7
kevinquillen commentedDoesn't appear in the preview with a Image field either. What could be the issue?
Comment #8
kevinquillen commentedGot it.... if you don't check 'Multiple Values : Display items in single row' in views the view content won't render at all... no error or warning. Never encountered that before.
Comment #9
codycraven commentedKevin that is definitely an issue with Views, whether it is a bug or something else going on I couldn't tell you. I would recommend looking in to reporting a bug ticket for that, it may already have one even.
Good luck
Comment #11
wooody commentedThank you.