Hi there,
I have the exact same question as the original poster to this closed thread. I’m using the MSM and, for the default site, setting ‘tmpl_file_basepath’ in config.php. For a second site I’ve added via the MSM, I’d like to override this path, so that I can store the second site’s templates with my other assets for the second site. According to the thread I linked to above, I should be able to do this in my second site’s index.php file. Here is what the custom config section of my second site’s index.php looks like:
/*
* --------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* --------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class. This allows you to set custom config items or override
* any default config values found in the config.php file. This can
* be handy as it permits you to share one application between more then
* one front controller file, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
* NOTE: This feature can be used to run multiple EE "sites" using
* the old style method. Instead of individual variables you'll
* set array indexes corresponding to them.
*
*/
// $assign_to_config['template_group'] = '';
// $assign_to_config['template'] = '';
// $assign_to_config['site_index'] = '';
// $assign_to_config['site_404'] = '';
// $assign_to_config['global_vars'] = array(); // This array must be associative
/**
* If you are running the Multiple Site Manager, uncomment and assign the following variables
* See <a href="http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html">http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html</a>
*/
$assign_to_config['site_name'] = 'guitar';
$assign_to_config['cp_url'] = 'guitar-ee';
$assign_to_config['site_url'] = 'guitar-ee';
$assign_to_config['tmpl_file_basepath'] = 'Users/ekraft/Sites/guitar-ee/assets/templates';Despite that last line, my second site is still hanging onto the template path specified in the default site’s config.php file. Is there a different way I should be setting up my second site’s index.php?
Thanks,
Erik