I have created a new content type called "listing" and using CCK, I have created a field called "listing_type". I have successfully created a view that gives me all the listings based on my desired argument, "listing_type". Now I want to create a block to show up on each of my pages that is built based on the various "listing_types" in the database at that time. If there is no records for that type, I want it left out of the list. I have successfully created this block view.

Here's where I am currently stumped. I want to wrap an Anchor tag around each of the different listing types in the block that would point to a view of just the listings of that listing type. This would be similar to book or movie genres and clicking on a specific genre and seeing all the books in the database belonging to that genre. I have everything working with exception of wrapping that <A> tag around the genres.

Any ideas? Am I making this too hard?

Thanks!

Comments

nevets’s picture

By theming the block view you can change each of the listing types into a link that points to your page view. The link would include the approriate argument for the page view.

CMatters’s picture

Thanks for the pointer. That did the trick.