focuslabllc/ee-master-config — Issue #7: msm site_name in config file
Author: vicrau
Created: 2012-02-27 13:44:25+00:00
State: open

Hello,

would it be possible to have the site_name variable available in the config file for a msm setup?
I've set the upload paths in the config file, but I'd like the images in a separate site folder

eg.
$assign_to_config['upload_preferences'] = array(
1 => array(
'name' => 'Static imagessss',
'server_path' => '/Users/username/Documents/workspace/site/assets/uploads/site_default/images/static/',
'url' => 'http://site.localhost/assets/uploads/'. $config["site_name"] .'/images/static/'
),
3 => array(
'name' => 'Sponsor images',
'server_path' => '/Users/username/Documents/workspace/site/assets/uploads/site_default/images/sponsor/',
'url' => 'http://site.localhost/assets/uploads/'. $config["site_name"] .'/images/sponsor/'
)
);

I've already tried several things... but no solution so far.

Any insights are welcome ;-)

kind regards,
Vic