Creating A Page View From A Taxonomy
Submitted by learnbythedrop on Fri, 11/28/2008 - 23:44
This video shows the user how to use the views module in Drupal 6 to create a page that list nodes with a certain taxonomy term. For the screencast I created a view that lists all of the nodes tagged with cck or views at http://www.learnbythedrop.com/cckandviews.
- learnbythedrop's blog
- 4214 reads




Comments
I am interested in obtaining the premium versions of your videos so I can download them to my local machine and watch them whenever I need info.
Are there any "Bundles" available rather than having to purchase each item individually?
It's funny that you mention that. The short answer is no as of today. But I have been planning to do that and will start working on it this weekend. The bundled videos will be distributed at a discount over buying the same number individually. Stay tuned to this channel for more info in a little bit.
I like what you're doing here and you're getting a good inventory of content, but I'm a little 'meh' with the whole "drops" terminology, and I'd really rather see examples that don't use "CCK and Views" (for example) as your content. It might be easier to create the tutorial using examples from your own site, but it could get a little confusing. If the taxonomy terms were something totally different like "Kangaroos" and "Granite" it might be clearer to the viewer what was being done with what.
Yeah !! this example is not sufficient to understand this topic, i think its not good.
What is it that you thought you should have gotten out of this lesson that you didn't?
This tutorial is exactly what I was looking for! Thank you for taking the time to create such a fantastic resource :)
Hey thanks a lot, great video. I have a few question with the applications of the Views module. I am trying to have Views create a page for me to list all the terms in a certain vocabulary. But I can't figure out how to do it.
I added a Vocabulary called "Classified", and underneath it, I added all the terms in a hierarchical fashion. For example: For Sale >> Electronics, Clothes, Books, etc. Jobs >> Accounting, Finance, etc. All I want to do is have all these terms listed on a page so users can see different categories, click on them, then see all the postings other users have made. I used the Views module to list all the terms but it won't work. I set it to create a page, and for the Fields, I put in Taxonomy All Terms...
When you created your view which "type" of view did you select? You need to select the "Term" type in order to create a view that just displays taxonomy terms.
Below is the hierarchical of all my terms under the vocabulary "Classified"
Classified
1. For Sale
a. Books
b. Clothes
c. Computers
d. Electronics
2. Housing
a. Apartments
b. Condos
3. Jobs
a. Accounting
b. Engineering
c. Finance
4. Wanted
Method 1: Using Node view.
Okay so here is the problem. Using Views, I created a Node view. Then I set the Row Style to "Field." I added "Taxonomy: All terms" field and set it to only show all the terms from the "Classified" vocabulary. I created the list of terms, but it had duplicate terms, and only showed terms that actually had a post using that term. Below is the output I got. So how do I get it to remove duplicate terms and also show terms that don't have a post using that term. Not only that, how do I get it to show all the list of terms in a hierarchical fashion?
All terms:
All terms:
* Jobs
All terms:
* Finance
All terms:
* Condos
All terms:
* Jobs
All terms:
* Finance
All terms:
* Housing
All terms:
* Condos
All terms:
* Jobs
All terms:
* Housing
Method 2: Using the Term view, as you told me to
For the Fields, I used Taxonomy: Term, and I used the Taxonomy: Vocabulary filter to filter out terms only from Classifieds vocab. Now the problem is, 1) Only terms that currently have post attached with that term, are listed, 2) The terms are not outputted in a hierarchical method. Below is my output.
Term: Accounting
Term: Apartments
Term: Books
Term: Clothes
Term: Computers
Term: Condos
Term: Electronics
Term: Engineering
Term: Finance
Term: For Sale
I assumed that you wanted to output a list of terms that had already been used. You want to create a list of the entire vocabulary whether the tag is in a post or not. Perhaps try the Taxonomy Menu (http://drupal.org/project/taxonomy_menu) module.
Hey thanks for the reply, but I noticed one problem. The Taxonomy Menu module creates "menus" from a given vocabulary. I don't want to create a menu. I want all my terms to be listed on a page. Is this possible?
I know that you can create a page view for taxonomy terms that will link to their category pages as I've done at http://learnbythedrop.com/categories. I don't know for sure about the hierarchy since I never seem to use hierarchies. In the configuration for the style of the field try selecting the "group by" option.
Post new comment