I have been wrestling with views (and looking at the existing views tutorials [http://drupal.org/node/59157] and other handbook material) trying to figure out the solution to what should be--probably is--a fairly simple task using views.
If I can solve this problem (hopefully with help on the forum) I will write it up as a tutorial.
Here's what I would like to accomplish:I have a vocabulary called "Resource Categories." I want to create a page view which will list each of the categories of that vocabulary in alphabetical order and, below each category, will display (in alphabetical order and as a link) a listing of the titles of each node associated with that category.
Sounds straightforward enough. But I keep trying to get views to accomplish this, and no luck. Here's what I did to try: 1) Created a list view called "resources by category"; 2) Added two fields in this order: "Taxonomy:Resource Categories" and "Title:Node". (I did not set any arguments, filters, exposed filters, or sort criteria, as thus far I have not discovered how they work.)
Instead of getting an alphabetized listing of taxonomy terms and their associated node titles, what this creates is a list of all node titles in the order they were posted.
I suspect the problem is that I need to apply arguments, filters, or sort criteria to the view, but have not found this in the documentation. I don't expect a complete solution here: a simple, "why don't you try ...?" would be great. But I need a bit of guidance on this and have not located it at drupal.org. As I said, once I figure this out, I'll write it up and add it as a tutorial.
Thanks
Comments
This might solve your
This might solve your problem or at least give some hints.
http://drupal.org/node/74715
----
Previously user Ramdak.
Thanks, but not yet solved...
Thank you for the tip. I looked over the page and downloaded the views bonus pack referred to in the material, however, and what is available for 5.x doesn't seem to address the issue I am facing. (The taxonomy_directory default view might, but this does not seem to be part of the 5.x version of the views bonus pack, as the required lineage module doesn't seem to have been updated for 5.x.)
I will look at the material more and see if it helps clarify things, but at this point it seems I am still at square one.
My mistake
My mistake. Where the bonus pack information indicates that "lineage.module" is required, it seems it refers to the Taxonomy Lineage module, which is available for 5.x. I will install and play around with it and see whether it helps...
Wondering how you made out with this
I'm looking to do something similar. Thanks.
me too..
i am looking for the answer to this as well.
sound just like what I am looking for.
any advice?
thanks
Still working on it...
I am still working on this. (Actually I had to put the project on hold because of work demands and now will turn back to it.) Looks like I will have some time this week to puzzle it through, so will do so and report back here on my progress in a few days I hope...
anything?
Since posting to this thread I haven't experimenting with any approaches, just reaching out to the others to see if they got somewhere. Thanks.
Any news on this? Trying to
Any news on this? Trying to do something similar...
Sebastian
It seems as if some people
It seems as if some people are having luck with this:
http://drupal.org/node/128085
For me, though, it persists in churning out a list of links to each individual node, using the category as the link:
i.e.:
grapes (1)
grapes (1)
olives (1)
olives (1)
olives (1)
not at all useful so far. I'm still working on it myself, bit by bit...
Related forum post
I've created a related discussion here:
http://drupal.org/node/186471 : Views: How a (somewhat post-) newb thinks through the taxonomy view problem....
add a sort criteria
and it should work, unless I don't understand your question
(I'm responding to the original question)