Hi,
not sure if i'ts a bug, but I'm stuck into trying to make a finder search into a node view who has some fields selected via a relationship to locations (Location CCK module).
The view works fine, my location related fields are displayed correctly : http://www.enssib.fr/emploi/consulter-les-offres/emploi
My finder works fine too as long as I only search on cck fields who don't involve any relation : http://www.enssib.fr/emploi/chercher-dans-les-offres

But I have to add a search field to search into location (country, city, zipcode ...) and I can't make it work.
I created a text field in my finder and set it to search into : Location: city + Location: province + Location: zip-code + Location: country ... but when I use this field to run a serach I can never get any result, whereas there are nodes that should be returned.

I tried to create a similar field, but in select mode instead of text : this makes an empty select dropdown list. So I guess it means my finder isn't able to get any of the location values form my list .... :'(

Is it my fault ? (something I did wrong ?)
Or is it a lack in the finder module ? in the location CCK module ? both ?
How can I try to debug ? How can I track my data to see where it's lost ?

Below are exports of my custom content type, of my view and of my finder (the developement version of my finder, not the one you can see running in the link above).

Thanks

Comments

Hervé Saladin’s picture

StatusFileSize
new11.07 KB
new28.4 KB
new62.37 KB
danielb’s picture

That's a bit much for me to read atm, but I can tell you finder does have a problem with relationships in views.

Hervé Saladin’s picture

Do you mean relationships are not supposed to be a problem and so it should work ?
Do you think the problem may be with the location module ?
How can I try to identify the problem and track its origin ? I've been looking the code of the finder views module for almost the whole day yesterday, but I don't really understand how it works ... any advice ?
Thanks

danielb’s picture

Yes relationships are not supposed to be a problem, they should work. But they don't.

It's a problem with Finder Views integration with Views.

I have tried to ask for help about this on the Views issue queue because I just don't understand how to fix it.

More info in this issue: #487980: The Views relationships issue

danielb’s picture

Status: Active » Closed (duplicate)
Hervé Saladin’s picture

For those who may have the same problem : I finally found an alternative solution with the "Computed field" module.
I added a computed field (not displayed to users) with a piece of php code that concatenates location subfields. Then, added this field in my view selected fields as "excluded", and finally made my finder search on it.
It seems to work fine so far :)

marcxy’s picture

Component: Finder Views » Code

Any chance you can paste your PHP code? I'm having the same issue. thanks!

p0832414’s picture

Thanks for the work-around, I did exactly what you said and it worked very well. It's really unfortunate that relationships don't work... this module would have been even more awesome otherwise.