Download & Extend

Patch for views integration

Project:Addresses
Version:6.x-1.10
Component:Code
Category:feature request
Priority:major
Assigned:Unassigned
Status:needs review

Issue Summary

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

AttachmentSize
addresses_views.patch18.85 KB

Comments

#1

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

#2

Filter by city is easy:

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

but country and state i need help...

#3

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.

#4

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

#5

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

#6

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

nobody click here