ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

msm setup for 2nd site, one is a smaller subset of the other

May 27, 2011 4:40am

Subscribe [3]
  • #1 / May 27, 2011 4:40am

    michaeil

    3 posts

    Hi,

    I’m trying to get MSM setup, here’s what im trying to do.

    we have the main site, which has all the information in it. the client wants another site, which is identical in every way, except certain information not relevant is removed. eg all products are in the main site, but only 2 are in the second site. we want the second site to reference the data in the first site.

    now i can get the channel entries from the first site no problems, however, things like CSS and JS files, which in the original templates are specified with src=’{path="group/file"}’ dont come up because they obviously dont exist in the second site. I really dont want to duplicate templates that are common between the two, forcing me to update two sites, i might as well have two separate sites then. any suggestions on ways around this problem ?


    the second site is in a sub directory of the first, with the second domain pointing to that site. but i also have the problem that all my images are stored in the main sites folder under /images. I cant see this from my second site because the url ( http://www.site2.com/images/ ) does not exist, but http://www.site1.com/images/ does… so how would i reference them? im thinking a symlink ? is there something in EE that can do this ?

    I hope that makes sense, any help is appreciated

    edit: forgot to mention:

    ExpressionEngine: Version 2.1.3 Build 20101220
    MSM : Version: 2.0 Build: 20101215

  • #2 / May 27, 2011 5:50pm

    Brandon Jones

    5500 posts

    Hi michaeil,

    MSM sites each have their own set of templates. However, you could just keep your CSS and JS outside of EE, and call them from both sites like normal files (at mydomain.com/js/jquery.js for example).

    In your second site’s templates, how are you generating the image src? You could create a global variable like {image_path} to use across your MSM sites, and have it point to site1.com.

  • #3 / May 29, 2011 11:17pm

    michaeil

    3 posts

    ah, *click* I get it now. I couldnt see the forest because all the trees were in the way 😊

    so, is there a way to import templates from one site to another after you have setup the second site ?

  • #4 / May 31, 2011 7:21am

    John Henry Donovan

    12339 posts

    michaeil,

    so, is there a way to import templates from one site to another after you have setup the second site ?

    If you are saving templates as files you could copy the templates from the site 1 template folder into the site 2 folder and then synchronise them

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases