How would I go about implementing the following content types + fields
School
- Title (name of school)
- location (geolocation - geofield)
User Properties (students)
- school (entity reference)
- class
- location (geolocation - geofield)
every student has one school. Now I want to create a View with a list of all schools and display the number of students. For example: school one has 25 students.
I found an example: https://drupal.stackexchange.com/questions/42352/display-number-of-times-content-is-referenced-in-content but by trying this I get an error: *SQLSTATE[42702]: Ambiguous column: 7 ERROR: column reference "nid" is ambiguous LINE 9: GROUP BY node_title, nid, node_created) subquery ^
Thanks!