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

rory--’s picture

Does anybody know how this would work? Or if this is impossible?

rory--’s picture

Anybody? I'm hoping it's okay to bump: it's been a week's time.

domesticat’s picture

I 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.

merlinofchaos’s picture

Status: Active » Fixed
rory--’s picture

Status: Fixed » Postponed (maintainer needs more info)

That 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.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

In the style settings, select author as the grouping field.

rory--’s picture

Excellent! Thanks! Is there a query I can make to list the author name as it groups?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.