简体   繁体   English

我们可以在drupal7多站点中共享特定的内容类型吗?

[英]can we share specific content type in drupal7 multisite?

I have three websites.
1. website1.com
2. website2.com
3 website3.com

All are separate websites. 所有都是单独的网站。 Now I am using drupal7 multisite concept [Different database but same code files]. 现在,我正在使用drupal7多站点概念[不同的数据库,但是相同的代码文件]。 I have shared users, session, auth tables. 我有共享的用户,会话,身份验证表。 Now I want to share content of specific content type "Case_study". 现在,我想共享特定内容类型“ Case_study”的内容。

Please let me know. 请告诉我。

I'd not suggest the sharing approach since node IDs will be site dependent, so you might end up in a situation where sharing that many tables will create conflicts between sites. 我不建议使用共享方法,因为节点ID将取决于站点,因此您可能最终遇到共享许多表将在站点之间产生冲突的情况。

Can you provide the data via RSS/REST Api and aggregate from other sites? 您可以通过RSS / REST Api提供数据并从其他站点聚合吗? Also you could build a custom module that handles this, internally switching active database to load a specific node, anyway.. I'd go for RSS/REST first. 您也可以构建一个自定义模块来处理此问题,无论如何都在内部切换活动数据库以加载特定的节点。.我首先要使用RSS / REST。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM