Group by location fields

mongolito404 - May 19, 2009 - 10:21
Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

BWPanda - May 19, 2009 - 14:09

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

AttachmentSize
Location_Views_Group-By_Test.txt 4.27 KB
 
 

Drupal is a registered trademark of Dries Buytaert.