CMS MADE SIMPLE FORGE

CGGoogleMaps

 

[#3545] Parameter maptemplate don't work

avatar
Created By: blast blast (blast)
Date Submitted: Fri Jun 12 07:16:31 -0400 2009

Assigned To:
Version: 1.3.3
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
Parameter maptemplate don't work
Detailed Description:
From CGGoogleMaps help:
"(optional) maptemplate="" - Specify the name of an existing, non default map
template to use for this output. If this parameter is not specified, the current
default map template will be used"

This parameter is not working because in source code it is only declared but
never used for db query.

CGGM_PREF_DFLTMAP_TEMPLATE (default template) is the only working template.


History

Comments
avatar
Date: 2010-02-04 20:42
Posted By: Toff. (toff)

In the action.default.php, add the following after line 42:
	$thetemplate = $params['maptemplate'];

So that:
$thetemplate = $this->GetPreference(CGGM_PREF_DFLTMAP_TEMPLATE);
if( isset($params['maptemplate']) )
  {
    trim($params['maptemplate']);
  }

becomes:
$thetemplate = $this->GetPreference(CGGM_PREF_DFLTMAP_TEMPLATE);
if( isset($params['maptemplate']) )
  {
    trim($params['maptemplate']);
	$thetemplate = $params['maptemplate'];
  }