I've used Views before, so I've got a general idea for it. I've never used it with comments before, though.
Our site model relies on a great deal of mini-comments being posted, with every commenter posting a lot per node. I want to create a view that lists comments by user. I figure I COULD do this by sorting by user/date originally posted, but then I get the user's name next to every last comment. Is there a way that I could show the user's name once, as sort of a header for their comments, and then never again?
Comments
Comment #1
rory-- commentedDoes anybody know how this would work? Or if this is impossible?
Comment #2
rory-- commentedAnybody? I'm hoping it's okay to bump: it's been a week's time.
Comment #3
domesticat commentedI got curious and tried this -- you can indeed do this. Here's how I did it.
Build a comments view.
Under Fields, choose Comment: Title and Comment: Author. Under Comment: Author click 'Exclude field from display.'
Under Sort Criteria I sorted first by author and then by comment date.
Under Basic Settings - Style I chose HTML List.
I might have forgotten a step, but try that; I think the 'exclude field from display' option is the key you're looking for.
Comment #4
merlinofchaos commentedComment #5
rory-- commentedThat removes the author entirely, which is good; however, what I'm trying to do is display the author once for any given list of comments. Say I've posted five comments: I want my name to appear once, for the top comment, then not again for the list of mine.
Comment #6
merlinofchaos commentedIn the style settings, select author as the grouping field.
Comment #7
rory-- commentedExcellent! Thanks! Is there a query I can make to list the author name as it groups?