Hi,

I needed views integration for a client's website so I tried to implement it. It seems to work but surely needs some testing and review.
The patch was done against a clean 1.10 release and provides simple views integration, theming and a default view.

Regards,

jens

CommentFileSizeAuthor
addresses_views.patch18.85 KBAnonymous (not verified)

Comments

jlballes’s picture

Great work!! Thank you!!
Work for me.
But, how can i add exposed filters by country, city, state... ??

jlballes’s picture

Filter by city is easy:

'filter' => array(
'handler' => 'views_handler_filter_string',
),

but country and state i need help...

Anonymous’s picture

Country and state are wrapped through helper functions by the addresses module. Maybe that is why it doesn't work right out of the box. If I've got time (surely not till the end of the year) then I'm gonna take a look at it.

AlexisWilke’s picture

jan0sch,

What's the difference between your implementation and the addresses_user_views implementation? Wasn't that other one functional already?! It seems to me that it offers all the fields already.

Thank you.
Alexis

Anonymous’s picture

Hi Alexis,

I didn't find the addresses_user_views implementation until you mentioned it. Therefore I did my own stuff. ;-)
Right now I don't have time to dig into it and compare it to my stuff. If it works fine and offers a better solution than my patch you should stick with it or maybe merge both. :)

Regards,

Jens

AlexisWilke’s picture

Jens,

Okay! 8-) Maybe it's not in the official version yet.

I certainly should merge the work on having a view of type addresses which I guess can be useful. With the relationship, it works great with nodes already though.

Thank you.
Alexis