I am no views expert.
I am making a view which shows listings of nodes (products) in a specific way, if they are in a certain category.
I.E.
If the term is one of: 7, 10, 20-30, etc., the view should show the listing one way. If it is anything else, it should show them another way (the default UC_Product view, actually).
How can I do this?
Do I use two views, and some how determine which one is accessed by TID?
Or can I do it with a single view, and some how choose the display by argument or range of arguments?
Thanks
Luke
You didn't say whether this is Views 2 or 3, but the result would be the same. Set up the View to show the result of your choices, or just show empty text. Then add an attachment (search DO for instructions) for the other View, inheriting arguments. so that it shows empty text if it is one of the chosen values.
I don't recall off the top of my head if the "empty" stuff allows PHP code, but, if so, you could call the other view that way.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Luke drupal@lists.tacticus.com
I am no views expert.
I am making a view which shows listings of nodes (products) in a specific way, if they are in a certain category.
I.E.
If the term is one of: 7, 10, 20-30, etc., the view should show the listing one way. If it is anything else, it should show them another way (the default UC_Product view, actually).
How can I do this?
Do I use two views, and some how determine which one is accessed by TID?
Or can I do it with a single view, and some how choose the display by argument or range of arguments?
On Mon, 1 Aug 2011, Ms. Nancy Wichmann wrote:
You didn't say whether this is Views 2 or 3, but the result would be the same. Set up the View to show the result of your choices, or just show empty text. Then add an attachment (search DO for instructions) for the other View, inheriting arguments. so that it shows empty text if it is one of the chosen values.
Oh very nice. Thanks! Basically, view nesting.
Views 2, by the way, on D6. Sorry I didn't specify.
Thanks
Luke
Attachments were added in Views 2 and they are really powerful. In Views 3 they are much easier to set up. Earl hit the bullseye with that feature. I'm not sure I'd call it nesting so much as stacking.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Luke
Oh very nice. Thanks! Basically, view nesting.
On Mon, 1 Aug 2011, Ms. Nancy Wichmann wrote:
Attachments were added in Views 2 and they are really powerful. In Views 3 they are much easier to set up. Earl hit the bullseye with that feature. I'm not sure I'd call it nesting so much as stacking.
Question:
While looking for another module, I came across Taxonomy Views Integrator (http://drupal.org/project/tvi). I've never used that, but it does look like it would allow what I want, although potentially with more work.
Your suggestion seems like it might be cleaner, and possibly easier to maintain when adding terms and such, but I'm curious what your thoughts might be of that module for my purposes.
Thanks
Luke
Thanx for sharing this module Luke, really helpful. Infact I made a view of taxonomy terms where I was to override the default view, I preferred to change the path across the site, and that was definitely a pain. Wish, i could have got it then. But thanx for this again.
On Tue, Aug 2, 2011 at 1:38 PM, Luke drupal@lists.tacticus.com wrote:
On Mon, 1 Aug 2011, Ms. Nancy Wichmann wrote:
Attachments were added in Views 2 and they are really powerful. In Views 3
they are much easier to set up. Earl hit the bullseye with that feature. I'm not sure I'd call it nesting so much as stacking.
Question:
While looking for another module, I came across Taxonomy Views Integrator ( http://drupal.org/project/tvi**). I've never used that, but it does look like it would allow what I want, although potentially with more work.
Your suggestion seems like it might be cleaner, and possibly easier to maintain when adding terms and such, but I'm curious what your thoughts might be of that module for my purposes.
Thanks
Luke
[ Drupal support list | http://lists.drupal.org/ ]