Posted by thepocketgeek on April 22, 2010 at 7:31pm
I created a view to display the node title, image and teaser. Each node of that type also has a taxonomy term associated with it. I have the view working correctly in that every node of the type that is published shows up and is displayed. What I would like to do is have a main page for each taxonomy term and have only the nodes that were tagged with that term show up.
Do I need to clone the view for each term? So far I have tried to get the view to filter based on the taxonomy term but I am not sure how to get it to pull the term from the node that it is on.
What do you guys suggest?

Comments
Views Arguments is for this
Views Arguments is for this very thing :)
Orlando, FL Web Developer | http://www.garethsprice.com/
Okay. I will play with the
Okay. I will play with the Arguments field tonight. Thanks for the assist.
I found this a video that
I found this a video that takes you through using Arguments in Views at http://gotdrupal.com/videos/drupal-views-arguments. What I realized is that I need to make changes to my taxonomy because the taxonomy term I wanted to use as an argument is not showing up in the node URL. So I have a little more work to do before I can get the view to do what I want.
I knew I needed to pay more attention to taxonomy. Hands on experience it is!
I will try and post later about what I did and hopefully get some feed back on my methods.
or just change pathauto
maybe you just need to add a term token in pathauto?
Joe Moraca
WebDevGeeks.com
Yeah... That is what I was
Yeah... That is what I was working on. I realized that I have not been using the PathAuto Module properly (to say nothing about Taxonomy in general).
I am having to learn to look at web development in a whole new way with Drupal. I used to hand code everything so if I needed a link to a page, I just wrote one. Drupal really forces you to look at how you need to maintain the site and how you want it to deal with growth.
Its been a lot of work for me but definitely worth it. I am glad that you guys are around to bounce ideas off of.
Term token?
I have been working on the site taxonomy. I have a category for different types of buses. The terms under that category are the type names. I also created two content types. One for the Vehicle type description and a second for a vehicle detail page.
What I need to be able to do is have the view I created list only those vehicles tagged with the taxonomy term for that type. It is set up to give me an image, the node title and the teaser. I am displaying the result with Views Showcase.
I hope that makes sense. Taking Joemoraca's advice I went to the taxonomy settings and looked at the automated URL alias settings. Under Pattern for all Vehicle Category paths, I put:
[cat-raw]/[catalias]
[cat-raw]
The unfiltered name of the category.
[catalias]
URL alias for the term.
So that should mean that when I create a new vehicle type node the URL alias created should be category/term correct? Or am I way off base? The problem that I seem to be having is that when I go to add a new vehicle content type, the URL Alias field is blank despite the fact that its checked. Pretty sure I am missing something here.
I realize that I am going to have to move the content to the new content types in order to get all of this to work but in the end the taxonomy will be set up correctly and new content will show up in the Views when I need them to. I would really like to get this straightened out so any advice would be greatly appreciated.
video from drupaldojo
I have not watched it but it may help
http://groups.drupal.org/node/64343#comment-194743
Joe Moraca
WebDevGeeks.com
Thanks..
I took a look at the video and decided to give that approach a whirl. I have made a lot of progress in the last day or so. I have the right list of vehicles showing up in a list on my test page (http://msvehicles.com/test-page) but they really need to replace the list of vehicles in the showcase right underneath. I cleared the view cache and cleared the site cache in case that was maybe making things goofy.
Any ideas on what I might have forgotten?
Gone
Looks like that page isn't there anymore.
Yet another Arguments tutorial:
http://drupaleasy.com/blogs/ultimike/2009/07/using-views-relationships-a...
Hope you get it figured out.
Also, for future reference, if you are IRC savvy, check out #drupal-support. If you don't know about IRC, try http://drupal.org/irc and read all the related pages there.
Ryan Price
DrupalEasy Podcast
That page wasn't working for
That page wasn't working for me at all so I dumped it. I took a look at Mike's Argument tutorial and it made sense but I have not been able to get the Attachments to work right. I am not sure if there was something specific I needed to do when I set up the Node Reference fields. I know the node reference works because on the "band" page (in my case its a vehicle category page) the "albums" (vehicles in that category) are showing up in a list on the bottom of the node body.
But in the view, when I create an attachment based on that node reference, nothing shows up.
I am fixing to headbutt the wall for a few minutes to try and relax.
Hopefully Ultimike will be at the meeting on Sat and I can ask him if there was some special way I needed to set up the Node References.
On a personal note, I am going to see if I can figure out IRC. It's been on my to do list for a while.
Rats
Sorry, but I won't be able to make it on Saturday, but I know of at least two or three people who are going that will be able to help you out!
Mike
Thanks Mike. I am sure I will
Thanks Mike. I am sure I will get it. I am actually thinking about picking up the Views Arguments book too. Has anyone read that? Is it worth it?
Views Attachments?
Are you thinking of the Views Attachments book? If so, we interviewed the author for the podcast:
http://drupaleasy.com/podcast/2010/04/drupaleasy-podcast-34-drupal-6-att...
It's a pretty good book - covers the basics of views quite well, but it doesn't go super-deep into arguments.
-mike
Great. Thanks for the link. I
Great. Thanks for the link. I am going to check that out. As for the book, yeah, that is the one l was thinking of. I could use some learning of the basics. I will take a look at it and see if it will helps.
Again, thanks for the link.
I need to learn to use IRC...
I need to learn to use IRC... It's officially on my list of things to do. Thanks for the tutorial. Its the second one I have seen that works with Node References. I am going through it today.
Images and Views
If I am going to use Views Slideshow or Showcase to display images associated with a note (like a slide show on the node with all of the images associated with it) is it better to have the images entered as nodes of an "image" content type or can I just attach them directly to a node and pull them up in a view that way?