Jump to content

Recommended Posts

Hey everyone,

 

I'm working on designing a CMS that will handle all the content for 2-4 sites and I would like to get some input on the best way to implement  it. Ideally I would like to do is have the system use the same admin area and the same content database for all the sites. Then I'd like to be able to say I want this article to appear on site a, site b and site d but not on site c. Then the php scripts that get the code from the database would simply look for their site ids to get the content that is assigned to them.

 

Thanks in advance for any help you guys can give!

Link to comment
https://forums.phpfreaks.com/topic/97489-multi-site-cms-design-question/
Share on other sites

Sounds like you just need to use the same database settings for all (except localhost being the master site, maybe add some cacheing)

as for what data goes where.. thats down to your own design.. i would probably have a table for contents tables for domains and a table to link them ie

 

Contents

ID -  Contents

1. Hello World

2. Hello John

3. Hello Paul

 

Domain

ID - Name

1. SiteA

2. SiteB

3. SiteC

 

CtoDLink

ID - DomainID - ContentID

1. 1 - 1

2. 1 - 2

3. 1 - 3

4. 2 - 1

5. 2 - 2

6. 3 - 1

7. 3 - 3

 

So..

SiteA can see all contents

SiteB can see Hello World & 2. Hello John

SiteC can see Hello World & 2. Hello Paul

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.