Skip to main content
added 4 characters in body
Source Link
Paul Frost
  • 470
  • 4
  • 13

I'm running multiple domains/sites with one EE install without using MSM (I don't need the power or complexity and to save licence fees). I have copied the index.php file to the subsidiary domain and edited the Custom Config Values as per instructions.

$assign_to_config['template_group'] = 'ocoach';
$assign_to_config['template'] = 'index';
$assign_to_config['site_index'] = 'http://www.xyz.co.uk';
$assign_to_config['site_404'] = 'ocoach/404';

I want to have url's like: 
domain.co.uk/item/url_title 
domain.co.uk/category/category_url_title

I've created a template group called ocoach and templates within in called, index, item, category, 404. I've got seg2cat installed. But I get the 404 page when I use either of the above url's. If I go in and tick the "Make the index template in this group your site's home page?" it all works. But if I want to have multiple domains using different template groups I can't set the default in the EE control panel. I thought that setting it in the index.php file in each domain would override the control panel, but it doesn't seem to make it the default, just the one to use. I've searched around and can't find mention of setting the "default_template_group" as a config variable.

I'm running multiple domains/sites with one EE install without using MSM (I don't need the power or complexity and to save licence fees). I have copied the index.php file to the subsidiary domain and edited the Custom Config Values as per instructions.

$assign_to_config['template_group'] = 'ocoach';
$assign_to_config['template'] = 'index';
$assign_to_config['site_index'] = 'http://www.xyz.co.uk';
$assign_to_config['site_404'] = 'ocoach/404';

I want to have url's like: domain.co.uk/item/url_title domain.co.uk/category/category_url_title

I've created a template group called ocoach and templates within in called, index, item, category, 404. I've got seg2cat installed. But I get the 404 page when I use either of the above url's. If I go in and tick the "Make the index template in this group your site's home page?" it all works. But if I want to have multiple domains using different template groups I can't set the default in the EE control panel. I thought that setting it in the index.php file in each domain would override the control panel, but it doesn't seem to make it the default, just the one to use. I've searched around and can't find mention of setting the "default_template_group" as a config variable.

I'm running multiple domains/sites with one EE install without using MSM (I don't need the power or complexity and to save licence fees). I have copied the index.php file to the subsidiary domain and edited the Custom Config Values as per instructions.

$assign_to_config['template_group'] = 'ocoach';
$assign_to_config['template'] = 'index';
$assign_to_config['site_index'] = 'http://www.xyz.co.uk';
$assign_to_config['site_404'] = 'ocoach/404';

I want to have url's like: 
domain.co.uk/item/url_title 
domain.co.uk/category/category_url_title

I've created a template group called ocoach and templates within in called, index, item, category, 404. I've got seg2cat installed. But I get the 404 page when I use either of the above url's. If I go in and tick the "Make the index template in this group your site's home page?" it all works. But if I want to have multiple domains using different template groups I can't set the default in the EE control panel. I thought that setting it in the index.php file in each domain would override the control panel, but it doesn't seem to make it the default, just the one to use. I've searched around and can't find mention of setting the "default_template_group" as a config variable.

Source Link
Paul Frost
  • 470
  • 4
  • 13

How to set the default template group in index.php

I'm running multiple domains/sites with one EE install without using MSM (I don't need the power or complexity and to save licence fees). I have copied the index.php file to the subsidiary domain and edited the Custom Config Values as per instructions.

$assign_to_config['template_group'] = 'ocoach';
$assign_to_config['template'] = 'index';
$assign_to_config['site_index'] = 'http://www.xyz.co.uk';
$assign_to_config['site_404'] = 'ocoach/404';

I want to have url's like: domain.co.uk/item/url_title domain.co.uk/category/category_url_title

I've created a template group called ocoach and templates within in called, index, item, category, 404. I've got seg2cat installed. But I get the 404 page when I use either of the above url's. If I go in and tick the "Make the index template in this group your site's home page?" it all works. But if I want to have multiple domains using different template groups I can't set the default in the EE control panel. I thought that setting it in the index.php file in each domain would override the control panel, but it doesn't seem to make it the default, just the one to use. I've searched around and can't find mention of setting the "default_template_group" as a config variable.