I'm going down the classic route of 2 sites within 1 install for a client who has a multi-lingual site with Transcribe.
For those not familiar with that approach, here's the background. What we're doing though is routing all foreign language content through different domains.
This approach kind of works but if, for example, I edit the home page template, the primary domain gets updated but the secondary doesn't.
I've narrowed this down to the template path. If I add
$assign_to_config['tmpl_file_basepath'] = '/Users/steven/Sites/ee/multilang.dev/public/assets/templates';
to index.php on the secondary domain, it works as I'd expect. I edit the home page template and both sites update. My issue though is that the template path will change depending on the server configuration.
In the main config file, we're setting
$base_path = $_SERVER['DOCUMENT_ROOT']; $config['tmpl_file_basepath'] = $base_path . "/../_templates/";
Any suggestions on how I can change the config to work across servers?