Why dont you use
PHP Code:
'default' => $GLOBALS['sugar_config']['site_url'] . '.......',
That will parse the name of the site url in there.
christian.

Originally Posted by
bdoyle807
I have CE 6.4 running on different deployment environments and when I install a module or upgrade I would like to use the current hostname of the url it is getting installed on:
$dictionary['Account']['fields']['reporting_iframe_index'] = array(
'name' => 'reporting_iframe_index',
'vname' => 'LBL_REPORTING_FRAME',
'type' => 'iframe',
'dbtype' => 'varchar',
'default' => 'http://<the current hostname>/index.php?module=reportsengine&action=index&sugar_ body_only=true&portfolio={name}', //iframe url
'len' => 255,//max size
'ext3' => 1,
'ext4' =>450, //height of the iframe
'required' => false,
'massupdate' => 0,
'comments' => '',
'help' => '',
'importable' => true,
'audited' => false,
'reportable' => false,
);
Or do i do in pre_install.php?
What is compatibility safe?
Thank You
Bookmarks