9 years ago
7
Topic

Hi, I bought the Map template. I can display search results on a map or lists view (depending on the selected template - map or table). But I need the both view on the same page. The map and the lists view under the map. Is there any way to do it? Thank you very much for response! Šárka

Get a Book for SEBLOD
97 Posts
Anjo
9 years ago
1
Level 1

Hi Šárka,

I think you can achieve that by placing the map in a module (seblod list module). You need to create 2 separate lists and search types with the same geolocation and search fields, one for the table search results one for the map view. Assign the map to a seblod module list and the other to normal search table template. Then assign map module above search results.

Hope that helps

Anjo

9 years ago
0
Level 2

Hi Anjo, thank you very much for your quick reply.  I tried the the suggested solution. I created 2 separate lists and search types with the same fields.

Each separately works well. But when I assign the map to a seblod module list, the map disappears. When I assign the table search to a seblod module list,

module is displayed correctly. So I turned procedure, I assigned the table to a seblod module list and the map view to normal search table template (see

http://psychiatrie.cz/index.php/deni-sit-zz/mapa-zz?cck=zdravotnicke_zarizeni&kraj=102&okres=7&adresa=&nazev_zarizeni=&boxchecked=0&search=mapa_zdravotnickch_zazen&task=search). But in the seblod module list is the number of items to display fixed and while the number of search results is high, the option of pagination is missing.

And the second question is: How can I assign map module above search results? I've tried different positions of seb_one templates, seb_table templates, but I did not display anything between search form and search results.

Thank you for your help!

Šárka

97 Posts
Anjo
9 years ago
4
Level 1

Hi Šárka,

I am guessing that you are using select dynamic and check boxes as your search fields and it appears that you have your search form on show with both the map and table list search types. If so, this means your search form will always show up together with either the map or table depending on which one you assign to the template. leaving the one you assign to the module to show only the map or table. So, if you assign the map to the module, the map will show under the table. The order of show will be - search form & table together/map module. If you put map above it will be - map module/search form & table together. If you put the table in a module the the order will be - Search form and map together/table module etc.

2 ways you can solve this:

1- use two modules one for map one for search form

a) hide "show search form" in list and search type configuration or in menu item so it will not show together with table or map template

b) assign the search form to a seblod search module - assign map to a seblod module list

c) place search form module above map

d) place map module under search form module

e) table should show under both - order = search form module/map module/main layout of table

2

Leave your setup as is and use a template variation for search form where you call all your search fields and then the module for the map. In essence you will call your map module inside the search form template. The table should show together with the search form under the map.

I am using a template variation of seb minima to achieve what you looking to do. I also use "no-number modules anywhere" plugin to call the map module inside the template variation. you can see results while I am testing at

http://asdaily.co.uk/services

click on button view map - I'm using bootstrap collapse function to show/hide map

Regarding the map not showing in a module, I did experience that while I tested your setup but when I re-freshed the page the map showed ok.

Hope this makes sense if not let me know and I'll try to put a tutorial together that I use for my set up.

Regards

Anjo

9 years ago
0
Level 2

Hi Anjo, thank you very much for your detailed description, helped me greatly. My problem is resolved. Thank you and have a nice rest of the summer. Sincerely Šárka

9 years ago
2
Level 2

Hi Anjo,

I'm also in a situation where I'm being asked to provide the blog results of search on a single page below the map.

I'd like to follow your suggestion #2 which I understand as creating a new template, and using no-number modules anywhere to display the map in the template.

I'm going to strike out in that direction but if you have any further details or tutorial like you said that would be great.  I'm just learning seblod and could use some pointers. 

Thanks

97 Posts
Anjo
9 years ago
1
Level 3

Hilownotes,

A good way of achieving what you are looking for is to use SEBLOD Form & List Pack (2 plug-ins) instead of a third party plugin likeno-number. It displaysa SEBLODForm ora SEBLODList inside a content, without modules (very useful).

You need to create 2 lists and search types for your content (blog results). One with the map template the other as a normal list and search type.

Then create a field inside the normal search type using the list pack plugin and call the map search with storage none.

I've attached a quick rough guide.

hope it helps

Anjo

9 years ago
0
Level 4

Thank you!

I get it, I will look into the form & list pack as a solution.

Bryan

Get a Book for SEBLOD