At the moment, if an addressfield field have a cardinality > 1 (i.e. more than 1 value) for a given content type, views won't be able to group these values in the same row.

In order to access the "Multiple Field Settings" in views for that field, the views field handler shall extend views_handler_field_field and not views_handler_field.

This can be changed in addressfield/views /addressfield_views_handler_field_country.inc, by replacing
class addressfield_views_handler_field_country extends views_handler_field {
by
class addressfield_views_handler_field_country extends views_handler_field_field {

Could this change be incorporated in the next version of the module?

Thanks

Laurent

Comments

bojanz’s picture

Status: Needs review » Active

The country is just a column so it can't use views_handler_field_field which is intended to display complete Field API values (for example, the entire rendered address).
This would need to be addressed in some other way (by providing a better base handler for these columns, for example).