Hi,
We have the multiple site manager, and I can get a second site set up but it doesn’t seem to be working correctly.
I have one site that lives on the server at /home/sites/expressionengine. I have a second site which lives at /home/sites/expressionengine/additionalsites/<sitename>. I’ve followed the setup steps and I have a working site. I’ve set up all the paths, however the second site is picking up content from the first site.
From the help files http://expressionengine.com/docs/cp/sites/code.html I should not be getting content unless I set the site parameter. I’ve not set it, so I was expecting “the current site is used.”. What am I doing wrong? Is it because one site is embedded in another, and the paths are somehow get mixed up? Or do I need to go through and specify the site parameter in everything?
Thanks
1.6.4 was an important update, so getting on the latest version of EE and MSM is a good idea. But let’s get things working first- I don’t think it’s a version issue.
For the second site- if you go to ‘edit’ do any entries show? (You can copy over entries, so it’s possible that’s what happened. And- if you go to ‘Templates’- do you have a template group and do you have one marked as the ‘default’ template group? And for testing- if you put just ‘This is site 2’ on the index template of the default template group, when you go to site2 does that show?
And- is this second site running off of a different domain name- or is it basically being treated as a subfolder? And lastly- if you just put a regular html file in that folder with ‘Hello World’ - is it coming up ok?
Hi!
Well, for the second site, if I go to edit there are no entries there at all. They are all still at the first site.
I do have a set of templates with defaults set, it’s an exact copy of the first site at the moment.
I changed the title of one of the templates and the change was picked up. But now something odd has happened! The content of the first site is now being ignored and I have exactly what I want. I’m not sure what happened. Maybe I needed to change a template for the new site to be picked up?
Regardless, problem solved, though I don’t know how! Thanks for helping me
Hm- maybe there wasn’t a default template group specified? Though usually that leads to a blank page.
Have you had a chance to surf around a bit, tweak templates, add entries? Does it all seem to be working ok now, or are you running into any other issues?
It was quirky, but if all is well now, we may have to chalk it up to the gremlins.
Running into other issues. My sites seem to be confused. Sometimes the content from the first site appears in the second site. Sometimes content from the second site appears in the first site.
My template names and field short names are the same, but this shouldn’t be a problem, should it?
I’ve set up path.php for both sites, filling in $system_path, $cp_url (absolute path), $template_group (same for both sites), $template (same for both sites), $site_url (different domain for each site), $site_index (index.php for both) and $site_name (uses the sites’ respective short names). $site_404 and $global_vars are untouched.
Extra info:
It seems when I modify a template in the second site and view it, all is good, how it should work.
But then when the sister page of the first site is refreshed, the content appears in the second site as well.
When I created the second site, I copied the templates and the weblogs. I did not copy weblog content however. The templates seem to be set up fine, these can be changed independently of one another. The content is confusing it.
The sites have different short names.
Since you aren’t specifying *which* links weblog based on the site id, that’s why EE is getting confused. You’ll need to add a bit more to the exp:weblog:entries tag:
Thanks. I was trying to get around having to do that.
On your help page http://expressionengine.com/docs/cp/sites/code.html it says there “If the site=”” parameter is not specified then the current site is used.”
I don’t mind specifying the site if I have to, I just thought I had set it up wrong. Thanks for your help.