7 years ago
Topic

Hi,

Thank you for the seb_map template, it's great and working well.

I would just need to modify it to be able to display the items as a result blog below the map.

As seb_list and web_table, the 'item' tab in the 'Views' is disabled and i can't find where to activate it to be able to select which content template i want to use.

I think it's in the xml file of the template but for now, no luck...

Thanks for your help.

Olivier

Get a VIP membership
7 years ago
2
Level 1

Hello jiliko,

the template seb_map don't implement a list view.

But you can  display the map in one module, and the list below with a module List Seblod. You just have to create 1 search type with map as template, and one search type with the template you need (blog, table, ...)


Regards.

Lionel

7 years ago
0
Level 2

Hi Lionel,

Thx for the tip but the problem is I have search fields (a lot) and if i use your solution, the 2 searches won't be "synchronized" anymore if filters are set in 1 search and not in the other.

Can you confirm ? Maybe the 2 searches could still be synchronized as the filters name would be the same...

7 years ago
0
Level 2

Hi Lionel,

I've tried what you told me and it seems there's some kind of conflict between the 2 templates.

If i set the page with 1 of the search, no problem, the map or the blog is displayed. But as soon as i set the map search in a module, the map is not loaded.

No js error, no map container...

Olivier

7 years ago
4
Level 1

Hi,

I've finally found the way to enable tie 'item' view in the web_map template.

2 things to do :

- Add a parameter to the template xml file

- Copy the parameters & code you need from seb_blog template (or another) to be able to configure & display items below the map.

I now have the map on top with list of items below.

I can provide the code if needed.

Olivier

233 Posts
pepperstreet
7 years ago
3
Level 2

Hello Olivier, i was about to ask the same question. I just read the map template description, and it seems to be a replacement for the usual list display. So, no simultaneous display with a second list?! Which is a typical usage, IMHO. At least a switch from map to list and vice-versa would be nice, too. I have not purchased the map, yet. Thus I am writing from the top of my head, in therory only.

You seem to have a solution. You have copied the blog-template into/under the map template, right? 

I would like to know more about this...  

7 years ago
2
Level 3

Hi,

Well, I should have updated my last post, sorry.

I thought it could work with just some code to copy/paste but, unfortunately, I didn't succeed and the solution is not "so" easy...

So, What I've decided is to update the index.php of the seb_map' template to build my own list of items as the php variable containing the result items is available.

The other solution would be to use 2 searches : 1 based on the seb_map template and implemented as a SEBLOD module and 1 based on the seb_list template and displayed as main content. As the 2 searches use the same fields, They should be both updated on form submission (not tested).

Olivier

7 years ago
1
Level 4
Hi Jiliko,
y can confirm, the solution with two search types (1 for the list & 1 for the map) is working.
If you have the same search form for the two search type, they will be synchronized. If you set differents search form, results will be differents. For exemple, you may want always all points on the map, and filter only the list, just let the cck and state fields for the search map, and all field for the search list.

Regards.
Lionel
233 Posts
pepperstreet
7 years ago
0
Level 5
Thanks for confirmation. May I suggest to have a related article in resources->tutorials? ;-)
Get a Book for SEBLOD