Quote from: gspark at May 20, 2007, 03:47 PM
Is there a way to have two versions ? one for domain.com and one for sub.domain.com ?
At the moment, you could have a plugin rewrite the config setting or create a snippet to replace [(site_url)] with the appropriate one you are detecting per request ( i.e. [!SiteUrl!] ).
In 0.9.7, this is exactly the purpose of the introduction of
Contexts. You can have multiple contexts in your site, each overriding the $modx->config variables. In other words, you will be able to define context specific configurations, which you can determine programmatically, or by creating additional index.php files (also known as front-controllers) in sub-directories (or other web directories served by and configured to use a single MODx core installation) which automatically load a specific Context.