Difference between revisions of "JReviews GeoMaps Add-on"

From JReviews Documentation
Jump to: navigation, search
Line 10: Line 10:
 
*[[Just purchased an add-on but it says it’s not active]]
 
*[[Just purchased an add-on but it says it’s not active]]
 
*[[How can I test GeoMaps before purchasing]]
 
*[[How can I test GeoMaps before purchasing]]
 +
  
 
== Video Tutorials ==
 
== Video Tutorials ==
Line 19: Line 20:
 
*[[How can I show the Map inside a tab]]
 
*[[How can I show the Map inside a tab]]
 
*[[How to hide the map from certain categories]]
 
*[[How to hide the map from certain categories]]
 +
*[[Using multiple Google Maps API keys when using domain aliases]]
  
 
 
=== Using multiple Google Maps API keys when using domain aliases ===
 
 
The add-on has a setting for only one API key. If you have alias domains pointed to your main site you will need one key per domain. The following hack will allow you to do that.
 
 
/components/com_jreviews/jreviews/controllers/my_controller.php
 
 
<source lang="php">
 
function beforeFilter() {
 
 
  # Init Access
 
  if(isset($this->Access)){
 
      $this->Access->init($this->Config);
 
  }
 
 
  # Load a different google maps key for every domain alias
 
  switch($_SERVER['HTTP_HOST']) {
 
      case 'www.domain-alias.com':
 
        $this->Config->{'geomaps.google_key'} = 'Google Maps API Key for the domain alias';
 
      break;
 
  }
 
</source>
 
  
 
== Troubleshooting ==
 
== Troubleshooting ==
 +
*[[Marker assignment via a custom field not working]]
  
=== Marker assignment via a custom field not working ===
 
 
The add-on allows you to use the images assigned to custom field options as markers. This is particularly useful if you've used a custom field for categorization. If the marker is not appearing on your maps you need to check a couple of things:
 
 
1. The field needs to be a single select or radio field because it's no possible to show more than one marker per listing.
 
  
2. The marker image needs to be placed in the add-on's icon folder. This means you will need to copy the image from the theme's theme_images folder to the icon folder where the add-on can find it.
 
  
  
 
[[Category:JReviews]]
 
[[Category:JReviews]]
 
[[Category:GeoMaps Addon]]
 
[[Category:GeoMaps Addon]]

Revision as of 11:10, 17 June 2011


Documentation Download


Sales FAQ


Video Tutorials


Tips & Tricks


Troubleshooting