How to compare nodes of different types but same fields? Is there any way to compare nodes of different types but with the same fields?


I have 2 content types: Flats to rent and Flats wanted
Both types have the sames fields: rooms and city
In a view I have a list of the Flats wanted and each one has a button: find flats
When you click the find flats button I need to show all the flats to rent that have the same values for: rooms and city  than the clicked flat wanted


I already get it working by creating a View using $_GET variables in the url and arguments. 
But I need to use clean urls, then$_GET must go out.

Is there any way to do this in a cleaner way? I need to do it using View because I need to be able to apply bulk operations in the resulting list.

Maybe a module could do this??

Thanks
I would create a custom field handler. This gives you full PHP power about how the link of the "find flats" button will look like.

Writing your own handlers for views maybe looks difficult at the beginning. Once you understand it you will use it a lot. Here I found a how to about how to do that (it's for views 2). You'll find a lot of real world examples in all modules that do support views. Look for code like MYMODULE_views_handlers .