11 years ago
7
Topic
Hello,
before I purchase the Map template, I would like to know if it is possible to display a map for a single location within a single article view.

I have a content type that already displays address in site view.
I thought I'd include a list/search module on this view with map template and use the data from the address fields to populate the map.
Would this approach work?


Thanks
gerhard
Get a VIP membership
11 years ago
4
Level 1
Hello gebeer,

for working with Google Map, SEBLOD use two things:
  • Seb_map template for list
  • Address to Coordinate Plugin field

The best way is to add the plugin field "Address to Coordinate" in the form of your content type. So latitude & longitude will be calculate on the form submission.

Then in your Search type Map it's better to work with those coordinates, because if you work with address fields, you will make a request to google for each item of your list, and each time you will display the map.
Request to google are not illimited.

Now, to display the map in the view "Content", the better way is to display the list map in a module, and to add a Joomla module field in the view. In the search form, add the "Article Id" field with a live plugin "Variable" with "id" as variable and the match "Exact".

So when you display an article, the search will get the "id" and display only this marker.

Hope it will help.

Best regards.
Lionel

10 years ago
3
Level 2
Thank you Lionel. Sounds great and I will give it a try.
203 Posts
louispapera
10 years ago
2
Level 3
Dear Geber, have you try ? I tried without success. I have seblod map and address to coordinate and I did as for Lionel instructions.
Give me any news, please. I have only a doubt: modulo name is the same that I use in field module ? 
example:
I use modulo name: mappa and link a specific map (this map with a menù link is OK is visible).
Besides I have add in the search form the "Article Id" field with a live plugin "Variable" with "id" as variable and the match "Exact" ;

In contet type, Title Field module is = mappa;
then there are others fielf for field module and I put in:  
label=mappa
mode=name & title
Position or Name,Title=mappa;
stile=none
I do not see any map and I do not know why.
If you have any ideas, please, inform me. Best regards, Louis

p.s. all is simple when all is all right
10 years ago
1
Level 4
Hello Louis,

the single map display worked fine for me with Lionel's instructions.

The same name of your map module and the field type module should not be a problem.

In the field type Joomla Module in your content view, did you enter the correct module position? It has to be the same position that you set in the module that displays the map.
203 Posts
louispapera
10 years ago
0
Level 5
Dear Gebeer, mant thanks for your reply and suggestions. I did a new topic with pictures some days agò, watch please:
http://www.seblod.com/community/forums/forms-content-types/seb-map-e-address-to-coordinate-e-single-item
Now, as for your reply, I try to put a position in module and the same position in field module in content view,  but nothing. 
Clearly, I do not assign any menù in module. Mistery, I do not know what do. I am glad to receive a support from you and from community.
Best regards, Louis
10 years ago
1
Level 1
Hello Louis,

you have to enable the module on all pages. Maybe this helps?

203 Posts
louispapera
10 years ago
0
Level 2
Dear gebeer, thanks for your prompt reply. Unfortunately, when I enable module on all pages I see always a map in any site page, and I do not want this one. I think there is a solutions but I do not know.
Have you seen my last topic:
http://www.seblod.com/community/forums/forms-content-types/seb-map-e-address-to-coordinate-e-single-item
Take any minutes and reply, please. Regards, Louis
Get a VIP membership