- Posts: 1
COMMUNITY FORUM
Tutorial: Adding Googlemaps from k2 extra fields
- Brad DiBaggio
- Visitor
15 years 1 week ago #70857
by Brad DiBaggio
Replied by Brad DiBaggio on topic Tutorial: Adding Googlemaps from k2 extra fields
Thanks, Jesse. Looking forward to using this.
Please Log in or Create an account to join the conversation.
- Kwesi Raphael
- Offline
- New Member
Less
More
14 years 8 months ago #70858
by Kwesi Raphael
Replied by Kwesi Raphael on topic Tutorial: Adding Googlemaps from k2 extra fields
Thanks a lot for the tutorial.
I found a slight error in it though, and thought I should let you know...
In your item.php.txt, "div class=googleMap" was inserted before the "php if" statement, which resulted in an empty map showing up on every page. I don't know if no one else got this problem, but I rechecked the files you've attached and the only comfort was that I can still follow instructions :)
Anyways, hope this helps.
I found a slight error in it though, and thought I should let you know...
In your item.php.txt, "div class=googleMap" was inserted before the "php if" statement, which resulted in an empty map showing up on every page. I don't know if no one else got this problem, but I rechecked the files you've attached and the only comfort was that I can still follow instructions :)
Anyways, hope this helps.
Please Log in or Create an account to join the conversation.
- James McCarthy
- Offline
- Junior Member
Less
More
- Posts: 31
14 years 8 months ago #70859
by James McCarthy
Replied by James McCarthy on topic Tutorial: Adding Googlemaps from k2 extra fields
You may want to consider using the Mosmap plugin instead of a K2 field - easier to use and much more functionality. Here's an example link in-sandiego.com/real-estate/commercial/for-lease/item/54-salon-day-spa-space-in-sorrento-mesa.html.
All you do is add {mosmap address='123 main street, anytown, anystate'} and that's it! Of course, there are a bunch of other settings you can add as well, but I set them all to default and pretty much use the same map style and zoom on my entire site.
All you do is add {mosmap address='123 main street, anytown, anystate'} and that's it! Of course, there are a bunch of other settings you can add as well, but I set them all to default and pretty much use the same map style and zoom on my entire site.
Please Log in or Create an account to join the conversation.
- Mike Dove
- Offline
- New Member
Less
More
- Posts: 13
14 years 8 months ago #70860
by Mike Dove
Replied by Mike Dove on topic Tutorial: Adding Googlemaps from k2 extra fields
Hi Thanks fo rthis Tutorial its helped me solve other problems I was having.
i have used your solution to call extrafield values into things such as div class="value" etc
i was wondering though if anyone knows if it is possible to split the results given by a mutli choice drop down box.
for example i have 3 divs and i want the class of each to reflect a single item from my multichoice selection.. anyway to split that data and call them seperatly? currently using this method produces a string of results seperated by a comma, what i want is each one seperate or as a series of li?
i have used your solution to call extrafield values into things such as div class="value" etc
i was wondering though if anyone knows if it is possible to split the results given by a mutli choice drop down box.
for example i have 3 divs and i want the class of each to reflect a single item from my multichoice selection.. anyway to split that data and call them seperatly? currently using this method produces a string of results seperated by a comma, what i want is each one seperate or as a series of li?
Please Log in or Create an account to join the conversation.
- strummsteel
- Offline
- Junior Member
Less
More
- Posts: 38
14 years 8 months ago #70861
by strummsteel
Replied by strummsteel on topic Tutorial: Adding Googlemaps from k2 extra fields
Great tutorial, unfortunately, i want to use this for my news articles so that authors can have a location mini map and shows a blank map when the extra field isnt filled out. Also is the a way to hide the extra field in the display and just show the resulting map?
Please Log in or Create an account to join the conversation.
- Mike Dove
- Offline
- New Member
Less
More
- Posts: 13
14 years 7 months ago #70862
by Mike Dove
Replied by Mike Dove on topic Tutorial: Adding Googlemaps from k2 extra fields
Anyone know a way to get the code to work for the K2 content Module? it works fine in articles and catagory layouts but isnt pulling the data when used in the module templates default.php
Please Log in or Create an account to join the conversation.
- Hazar Volga Ekiz
- Offline
- New Member
Less
More
- Posts: 1
14 years 6 months ago #70863
by Hazar Volga Ekiz
Replied by Hazar Volga Ekiz on topic Tutorial: Adding Googlemaps from k2 extra fields
hi everyone
ı dont speak english very well soryy
first of all great tutorial thanks so much
ı try this tutorials syas but ı dont succes
please help me
my site
www.interexuk.com/index.php?option=com_k2&view=itemlist&task=category&id=338:standard-general-english-course&Itemid=189
ı dont get the extra fields value
ı dont speak english very well soryy
first of all great tutorial thanks so much
ı try this tutorials syas but ı dont succes
please help me
my site
www.interexuk.com/index.php?option=com_k2&view=itemlist&task=category&id=338:standard-general-english-course&Itemid=189
ı dont get the extra fields value
Please Log in or Create an account to join the conversation.
- Biolsi
- Visitor
14 years 6 months ago #70864
by Biolsi
Replied by Biolsi on topic Tutorial: Adding Googlemaps from k2 extra fields
The EXTRA Fields are a function of K2 and are configured per category in the administration section of K2. You need to have at least 1 extra field that lists the physical address that you would normally type into google maps to bring up the address. You can use 1 field with the address listed in it, or you can have 1 field for street address and another for city, state, zipcode, etc.
Hazar Volga Ekiz said:hi everyone ı dont speak english very well soryy
first of all great tutorial thanks so much
ı try this tutorials syas but ı dont succes
please help me
my site
www.interexuk.com/index.php?option=com_k2&view=itemlist&...
ı dont get the extra fields value
Hazar Volga Ekiz said:hi everyone ı dont speak english very well soryy
first of all great tutorial thanks so much
ı try this tutorials syas but ı dont succes
please help me
my site
www.interexuk.com/index.php?option=com_k2&view=itemlist&...
ı dont get the extra fields value
Please Log in or Create an account to join the conversation.
- Biolsi
- Visitor
14 years 6 months ago #70865
by Biolsi
Replied by Biolsi on topic Tutorial: Adding Googlemaps from k2 extra fields
Does anyone know if there is a simply way to get the map to display the pop-up with the pin? So that it shows the name and address next to the pin? I can see it if I click on the pin, but I would love for it to be there by default.
Please Log in or Create an account to join the conversation.
- Samuel Strickland
- Offline
- New Member
Less
More
- Posts: 5
14 years 6 months ago #70866
by Samuel Strickland
Replied by Samuel Strickland on topic Tutorial: Adding Googlemaps from k2 extra fields
Hello,
I've been watching this discussion for over 6 months now, and have tried the extra fields method. It works, however, it's a lot of extra work. SO, I tried every maps plugin I could find and I found that this - extensions.joomla.org/extensions/external-contents/maps-a-lo... works the best and with the least amount of time consumption.
The support from Mike Reumer (website) is fantastic, his site has very well documented instructions. I have over 60 maps on the site I'm currently working on, all in K2 content, all with custom API data on external KML files.
It allows for the most simple of maps or the most complex, allowing the use of external KML files and all Googlemaps API language. You can easily put maps into modules and numerous times into the same item, category, etc.
@Mike Bilosi - try the plugin, it has the option to make the pop-up display in the plugin parameters.
Hope this helps! I know it made my site building easier.
I've been watching this discussion for over 6 months now, and have tried the extra fields method. It works, however, it's a lot of extra work. SO, I tried every maps plugin I could find and I found that this - extensions.joomla.org/extensions/external-contents/maps-a-lo... works the best and with the least amount of time consumption.
The support from Mike Reumer (website) is fantastic, his site has very well documented instructions. I have over 60 maps on the site I'm currently working on, all in K2 content, all with custom API data on external KML files.
It allows for the most simple of maps or the most complex, allowing the use of external KML files and all Googlemaps API language. You can easily put maps into modules and numerous times into the same item, category, etc.
@Mike Bilosi - try the plugin, it has the option to make the pop-up display in the plugin parameters.
Hope this helps! I know it made my site building easier.
Please Log in or Create an account to join the conversation.