I'm trying to get a view using the HTML List style to display results grouped by province using node location (not a CCK field). The wanted result is the have a list like this:
Province 1
- item 1
- item 2
Province 2
- item 3
- item 4
The "location: province" field has been added to the view but excluded from display. In the style parameter, I've also selected the field as "group field". But each list is its own group like this:
Province 1
- item 1
Province 1
- item 2
Province 2
- item 3
Province 2
- item 4
I also tried to group by city or country with the same result.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Location_Views_Group-By_Test.txt | 4.27 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedI just setup a test view as per your description, but found it to work fine... I'm using Location 6.x-3.1-rc1 on Drupal 6.11.
I've attached an export of my view in case that helps.
Comment #2
onelittleant commentedAre you using the theme developer module by chance? I had the same problem until I disabled theme developer. Views uses field values for grouping, but if theme developer gets its hands on the field first, it wraps the value in a span with a unique ID, thus destroying views' ability to identify field values that are the same.