I am trying to create a system like http://atlanta.craigslist.org/, where users can post anything they are selling. This is what I did so far.
1) I created a content type called "marketplace listing". I used CCK to add various fields.
2) I created a container vocabulary called "Marketplace". Then I added terms (categories) in a tree like structure. For example, see below:
Marketplace
-For Sale
--Books
--Electronics
--Clothes
--Computers
-Jobs
--Accounting
--Finance
--Engineering
-Housing
--Apartments
--Condos
3) I defaulted the Marketplace vocabulary to the "marketplace listing" content type. So now whenever users create a marketplace listing, they are forced to choose a term.
The Problem
The problem I am having is creating a page with a list of all the terms above. I want the users to see all the different categories, and be able to click on them to see other user's listings. For example, if a user clicks on "Books", it will take to a page with all the listings of books that are for-sale.
I used the Views module to created a list of all the terms under the vocabulary "Marketplace." But it keeps printing out duplicate terms, and it only prints out terms that currently has a post related to that term. Not only that, it doesn't print out the terms in a tree like structure.
Does anyone have advice on how I can create a page with the list of all the categories?
Comments
Try vocabulary index
Try the Vocabulary Index module, it does some of the things you want to accomplish.
-Daniel Chvatik
Adulmec
I already tested that module
I already tested that module out. The problem with it is that I am limited to the styles they give me. For example, I don't want it to be a AJAX (collapsible) term list. I wanna be able to theme the way the output of the terms are. Is this possible?
Theming
I haven't tested it in depth, but it looks like the module provides several theme.tpl.php files, so you should be able to theme it quite extensively.
-Daniel Chvatik
Adulmec