Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2011 at 12:43 UTC
Updated:
24 Aug 2011 at 19:04 UTC
I have no other way of explaining this other than the long way. Stay with me...
I created a view to override taxonomy term pages with a view of child-terms. Call this "View A".
The child terms have a taxonomy field where they tag themselves with their parent term.
The views override works as expected so far...
I have the packaged views taxonomy term override for the child terms that seems to kick in when the other doesn't find matches. Call this "View B".
If I go save View A, everything works as expected. If I save ANYTHING after View A, it stops working as expected and returns no results.
Let me know what you need to better help and I'll be quick to respond.
Comments
Comment #1
merlinofchaos commentedYou need to provide more details about view A and B. My best guess is you're trying to have two views override the path taxonomy/term/% -- if that's the case, that's simply not possible with Views.
Comment #2
drewschmaltz commentedmerlinofchaos - yes, 2 views overriding the same path. When one doesn't find matches, I want it to default to the other.
I ended up simply making the empty results default to a different view (both of them defaulting to each other). If neither return results, recurssion occurs. Other than that, it works like I want it to work.
What I'm really interested in is a good way to setup a category page of sub categories. Then the sub category page with products.
In Drupal 6 I would accomplish this by making a node type "category" - add fields to it - and set node relationships between them.
In Drupal 7, since the categories have fields, the logical setup is taxonomy terms and child terms.
If anyone else has found a way to make this work, please message me.
Otherwise, what I have works fairly well. I will post the results soon. I don't want to create a link to this beta page.
Comment #3
drewschmaltz commentedI guess this works as designed. The interesting thing was the behavior when say path : /a was overriden by 2 views - especially the behavior before anything else is saved. (nodes, settings, views, etc...)