Hi all! General Question on Drupal -

Can you share the drupal cms with multiple websites that share the same content.

Example: client has 2 websites. 1 has more product range than the other, but both share the same product range and pricing e.t.c?

PS - tried searching the current info but couldn't find any :( Please point me in the right direction if this information has already been posted up. Cheers!

Comments

socceronly’s picture

Might need a bit more detail.

You mean they share the same content?

Updated automatically? Like are they synced so if the price changes on one it does so on the other?

VM’s picture

Drupal 8.x as this thread is tagged isn't ready for production. If using D8, hopefully its for testing purposes.

you can share tables across installs. Take a look at the code comments in settings.php and review already existing documentation for creating multisites.

WorldFallz’s picture

First, as VM already pointed out-- d8 is not for general use so the modules I'm going to mention likely aren't even available yet.

There's basically 3 ways to share content:

  1. with feeds using the feeds module (create feeds for the content to share on the source, consume them on the destination).
  2. use the domain module
  3. share tables

I use the first method and it works great. The second method also works well but is more complex. I don't recommend the third method unless you really know what you're doing.

Droopal_OMate’s picture

Hi socceronly, VM, WorldFallz,

Firstly, thanks so much for the speedy reply! You guys definitely make the digital world a better place.

Now on to your questions -

  • You mean they share the same content? If by content you mean products then yes.
  • Updated automatically? Like are they synced so if the price changes on one it does so on the other? Yes correct
  • Drupal 8.x as this thread is tagged isn't ready for production.

    Yup, I'm noob. I take it that Drupal 7.x will be the one to use if I were to get an ecommerce site built. I just assumed Drupal 8.x is the latest stable version

Thanks again all, so to summarise, the answer is Yes using Feeds Module. Keep on rocking!

Droopal_OMate’s picture

Hi guys, just realised its better to have an illustrative example.

I need to build 2 sites x.com and y.com. Both need to have ecommerce functionality.
I am selling 10 products. At x.com, I will sell all 10 products. At y.com, I'll sell only 5 of those products.

Say I update the pricing for all 10 products, the prices at both x.com and y.com has to be updated.

Is this achievable with Drupal 7.x?

Cheers.

VM’s picture

yes as products are content and the price is a field contained within the content.

yes with D7, as already stated by WorldFallz utilizing either of the methods she took the time to outline. At this point more of your questions would get answered by testing the methods outlined to see which one best fits your needs. I've always found that the devil is in the details which aren't mentioned or aren't even thought about yet.

Droopal_OMate’s picture

Thanks VM, and yes, the devil is always in the details! Cheers and have a great day!