If you open cache/modules/Accounts/DetailView.tpl is the address hardcoded in there? If so, that may be the issue. You may need to instead overwrite the detail view and insert the variables that way.
Maybe something like the following (not tested):
custom/modules/Accounts/views/view.detail.php:
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.detail.php');
class AccountsViewDetail extends ViewDetail {
function AccountsViewDetail(){
parent::ViewDetail();
}
function display() {
$map_url = "http://maps.google.com/maps?f=q&q=".$this->bean->shipping_address_street."+".$this->bean->shipping_add ress_city."+".$this->bean->shipping_address_state."+".$this->bean->shipping_addr ess_postalcode."+".$this->bean->shipping_address_country."&source= embed&output=embed";
$this->ss->assign("MAP_URL", $map_url);
parent::display();
}
}
?>
custom/modules/Accounts/metadata/detailviewdefs.php:
PHP Code:
......src="{$MAP_URL}"....
That should make the data dynamic.
Hope that helps,
Jason
Bookmarks