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.

How to pull in different content - dependent on domain

September 28, 2010 12:10pm

Subscribe [4]
  • #1 / Sep 28, 2010 12:10pm

    Scott Harrington

    85 posts

    Hi,

    Bit of an unusual request from a client here. I have an existing website built in EE on a single domain which has been online for the past two years and with great effect.

    However, the client is now introducing a sub branded product with an independent domain name and require a kind of mirrored site in terms of template but to pull in different copy and images.

    Rather than duplicate the whole site and recreate from scratch, I was wondering if their was an alternative method in EE that would allow for this different content to be displayed dependent on the domain entered and whether or not I would need to set the domain up any differently?

  • #2 / Sep 28, 2010 1:52pm

    Crnaovca

    627 posts

    it is called MSM :D
    I just am not sure whether terms of use allow you to have such 2 sites, if I am not mistaken, licence terms allow you to have 3 sites max with similar thematics on same hosting account for same client.

    If you use MSM, when you create new site, you can literally copy one site with entries and templates to another and then just in templates of site2 you can set to display entries that are from site1 ... i use it currently and it works fine ...

  • #3 / Sep 28, 2010 3:24pm

    Ingmar

    29245 posts

    I agree, this sounds like a perfect job for the MSM.

  • #4 / Sep 28, 2010 3:40pm

    Jamie Poitra

    409 posts

    If for some reason you don’t want to or can’t afford the MSM.  If you direct the domain to a different folder in you site you can use a second index.php and path.php file and set the weblog and other variables that change in the the path.php file.  Then you can share templates but pass those templates and the tags within different values dependent on the domain being viewed.

    I’ve done this a lot of times and it works great out of the box.

    Jamie

  • #5 / Sep 29, 2010 4:32am

    Scott Harrington

    85 posts

    Thanks for this guys. Is there any online guides to the MSM anywhere that could assist me in anyway?

  • #6 / Sep 29, 2010 6:40am

    Crnaovca

    627 posts

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

ExpressionEngine News!

#eecms, #events, #releases