187 Posts
Pathos
10 years ago
4
Topic

Hi,

i was wondering if it would be possible to have one page with search results from two different search type lists.

For example. If i have a content type 'bikerides' and a type 'walks' and i would like to show a map with the results of both lists on the map?

Is that possible? 

Some fields in the search are different for both types...

Greetings,

Joris

Get a VIP membership
187 Posts
Pathos
10 years ago
0
Level 1

Is this a plugin that could realise something like this? The Search Join plugin...

http://www.seblod.com/products/922

10 years ago
0
Level 1

Hello Pathos,

I think the best way is to use a "Group" field in your two content types "bikerides" and "Walk".

This Group field must use a content type "Location".

This content type "Location" must have all fields (address, zipcode,...,lat,lng,...) which are not exclusively for this content type. When you create these fields, set the padlock open. It will store all those fields in the #__cck_store_item_content and they will be available for all content type.

So like that, in your search type (search form), in the CCK field you put as live value the name of your two content type "bikerides,walk" and the match must be "Any word exact".

It will search in the two content type, and like "Location fields" will be in the two content type, you can display all your result on one map.

Hope it will help.

Lionel

187 Posts
Pathos
10 years ago
0
Level 1

Hi Lionel,

i tried something similar... but didn't know about the match (any word exact). I will try it again.

When i tried it before, it went wrong. I guess because one of the search-fields/filters i want to use on one content type, is a date field... The other type hasn't got that field...

Thanks for thinking with me...

187 Posts
Pathos
10 years ago
0
Level 1

It works to search in two cck's... But the problem is i guess the date-field that i use in the search (that is exclusively for one content type.

I want to search on the date (today) and all other serach fields are available for both types.

So i want the "Bike" entries to show only when the date is today and all other "Walk" items that don't have a date-field at all...

I tried some conditional statements... But that doesn't work also (tried  Fields is disabled when cck is filled Walk

But it disables the date-search completely...

Get a VIP membership