20

$this->EE->config->item('site_id'); Or config_item('site_id');


12

I'll attempt to keep this answer opinion free! Your first stop should be the EE3 changelog, and also catching up on the EllisLab blog over the past 6 months. But you'll also need to look at the EE2 changelog to see all the changes since your version that are also included in EE3. The main changes are the infrastructure and Control Panel but it's where the ...


11

Clearing cookies should get around it. You might want to look at your cookie settings in the CP and try switching cookies/session authentication. I was having the same problem with an MSM site. I changed my CP session type to "Sessions and Cookies" and all now seems well.


7

My first suggestion is to clear browser Cookies and Cache. The second step is to add the following into your config.php file: $config['cookie_domain'] = ""; $config['cookie_path'] = ""; $config['cookie_prefix'] = ""; $config['admin_session_type'] = "s"; $config['user_session_type'] = "c"; $config['require_ip_for_login'] = "n"; $config['...


6

Bluntly: not many. There are no software alternatives to the MSM available that I know of. Further if they did exist, I strongly doubt that they would be compatible with the core EE license, specifically: An ExpressionEngine license purchase allows a single “live” installation in a production environment and ancillary “development use only” installations ...


6

Yes. Copy the index.php from the main site and update the system path variable, and the following $assign_to_config['template_group'] = 'your-template-group'; $assign_to_config['template'] = 'your-template'; $assign_to_config['site_index'] = 'http://blog.yoursite.com/';


6

What if you created fields for each location's price for that menu item. Then the field name would be prefixed with the child site's short_name. atlanta_item_price chicago_item_price seattle_item_price Etc. Then in your child site template, you could use: Price: {{site_short_name}_item_price}


6

I would probably use a matrix in the main sites entry with two columns: location and price. One is location and one is price. Fill that in for each location. The location column would need to be a dropdown that the user selects the correct location. The dropdown would be set up so that the value is equal to the site name and the label to the Restaurant name. ...


6

Actually, every upload location you create is going to have a different ID, be it one site or in multiple sites using MSM. You can thus safely keep everything in config.php becuse every upload location you define (even if you share physical folders) is going to have a different ID anyway. Basically: Step 1: create all your upload location in the CP for all ...


6

Found it. Turned out to be a setting left over in config.php. When the original site was constructed, I was using one of those temporary URLs that hosting companies often provide for viewing sites before domains are pointed at them. The original setting for the temporary URL was still in the config.php setting for 'cp_url'. Apparently, changing the ...


6

There is a hard limit of 4096 columns in a MySQL table. Each site in MSM creates additional columns in the exp_channel_data table: 2 columns for each custom field. If you work out how many custom fields you have, double that number and divide it into 4096 and round down you will end up with an approximate maximum for the number of sites that is possible: ...


5

So I'm inferring from the forum post you linked that you're bootstrapping your config with something like NSM bootstrap or similar in order to reduce the pain of moving EE between multiple environments (local/staging/production etc.). That's a great idea, and how I roll with EE myself (though take a look at FocusLabs Master Config for another, more in depth ...


5

You need to fill in the array for all of your domains that are part of MSM. I copied this from config.php for a 9 site MSM install and reduced it to just 3 sites to demonstrate: // ce_img stuff here $config['ce_image_src_regex'] = array( '^http://maindomain.com/' => '/var/www/vhosts/maindomain.com/httpdocs/', '^http://domain1.com/' => '/var/www/...


5

Another option is having a faux subdomain mapped to a template group in the existing site via .htaccess. For example: RewriteCond %{HTTP_HOST} ^blog.mysite.com [NC] #whatever exclusions you need for index rewrite: RewriteCond $1 !^(images|themes|assets|media\/|index\.php|([a-z0-9-]+).html) [NC] RewriteRule ^(.*)$ /index.php/blog/$1 [L] This would need to ...


5

Another option is to duplicate the entire MSM installation, set site #2 as the default, then delete Site #1. I wrote an article about this process while doing it in EE1, so while some of the specifics will be different the overall process would be the same for EE2: http://www.train-ee.com/courseware/free-tutorials/comments/splitting-a-site-out-of-an-ee-msm-...


4

Another option is to serve all the domains out of the same set of files. This will point the primary and subdomain at the same file set. Then all you have to do is just check the $_SERVER['SERVER_NAME'] and set the config variables based on the different subdomains. Its how I setup a mobile site in EE. Only one set of files, but I just changed a few vars (...


4

This has not been a problem for me, so I'm not 100% sure that this addresses your issue, but I believe you could set up your apache vhosts config (or other web server equivalent) to have the themes folder for all your different domains and sub hosts point to the same actual folder on the server itself. This should avoid any issues with loading up JavaScript ...


4

You can share content, but all navigation and page data is site-specific, so you can't call from one into another unfortunately. It's just an EE/MSM limitation.


4

You cannot use 1 ExpressionEngine installation to drive a multitude of websites for different customers. That would be a violation of the license, because you'd essentially be paying once to derive revenue from any number of clients, even if you're paying for Multiple Site Manager seats as they come on board. Multiple Site Manager's use is to develop ...


4

Chances are that your Theme Folder URL is set to something relative (e.g., /themes/), which won't work unless you have the theme folder copied to both sites. Try setting it to http://site1.com/themes/. FWIW, I generally make my clients administer all sites in an MSM setup from one master control panel location (the parent domain, if you will) to prevent ...


4

This isn't really an issue with your htaccess. You need to look at using a simple EE config bootstrap file such as this one to automatically set $config['theme_folder_url'] as either HTTP or HTTPS depending on whether the current request is served over HTTPS. In the most basic form, you could probably just add this to your config.php file: if (empty($...


4

Low Seg2Cat has always been site specific. However, some have made a slight alteration to the extension file to search through all sites. To do this in the latest version, comment out (or remove) line 218 of ext.low_seg2cat.php, which reads: ->where('site_id', $this->site_id) Also make sure the Category Groups setting is set to --All--. The ...


3

I think you can basically put them wherever you want so long as you set the appropriate template path. You may want them stored under the "main" MSM installation or you may prefer, as I do, to keep them within each site's directory. As an example I have an MSM installation running 8 sites and the directories are set up like so (missing out some of the ...


3

MSM should store everything about the site in the default site installation, except for the index.php & admin.php files in the 2nd site that route requests into the install. You may be able to specify a different path for the template location within the Site 2 context in the CP, but all of your other paths (add-ons, etc) are going to point to the Site ...


3

Try this: require(dirname(__FILE__).'/path/from/current/file/to/config.php'); For example, assuming you have config.php in the standard system/expressionengine/config directory, you would use this line: require(dirname(__FILE__).'/../../../config.php');


3

I keep my themes folder with the primary domain and then for each sub site set the themes path and url to match that. Everything is working fine for me doing it this way. I've got several 2-3 site MSM installs running like this and one 10 site install without any issues.


3

So it turns out to be a server issue where GD support hadn't been enabled in PHP. Enabled that, kept the same code and we're golden :-)


3

The old method of running multiple sites still works as of the latest EE 2 release. To use that, you need an index.php for each site and you'd use the assign_to_config values for anything site-specific. For example, I have this setup for one of my subsites (it runs in a subfolder rather than a subdomain, but principle should be the same I believe): $...


3

Unfortunately unique email address is EE core requirement, you cannot override without modifying system files. You may consider using some add-ons for advanced permissions management, such as Member Categories or MSM Member Group Switcher Actually I think MSM Member Group Switcher might be the thing you're looking for, as it allows the user to be treated ...


3

I had trouble like this with ed_image when I first starting using 2.x. I found CE Image to be far better and easier to work with. It's fairly easy to convert to CE Image too.


Only top voted, non community-wiki answers of a minimum length are eligible