问题描述
这就是这种情况:
我正在构建一系列活动网站,这些活动网站需要在同一服务器上分别安装Drupal-6。每个网站使用相同的架构,但使用不同的URL和主题。
I am building a series of event websites that need to be separate Drupal-6 installations on the same server. Each uses the same architecture but different URLs and themes.
我希望网站能够共享的内容是2种内容类型的内容,教师和赞助者。这样就可以建立一个包含所有教师和赞助者的数据库,每个事件站点随后都可以通过节点队列从数据库中提取。
What I'd like the sites to be able to share is content in 2 content types, teachers and sponsors. So that there would be one database with all the teachers and sponsors that each individual event site could then pull from by means of nodequeues.
这样,新的教师节点和赞助者节点可以在任何Drupal安装中创建和编辑。
So that new teacher nodes and sponsor nodes can be created and edited from within any of the Drupal installations.
共享用户表也很方便,但并非绝对必要。
It would also be convenient to share a user table as well, but not absolutely necessary.
有什么想法吗?
推荐答案
听起来像项目,这是一组模块,它们提供了从一个Drupal安装和一个共享数据库运行一组关联站点的工具。该模块允许您在多个站点之间共享用户,内容和配置。默认情况下,这些站点共享您Drupal安装中的所有表,但是模块允许选择动态表
Sounds like a job for the Domain Access project, a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The module allows you to share users, content, and configurations across a number of sites. By default, these sites share all tables in your Drupal installation but the Domain Prefix module allows for selective, dynamic table prefixing for advanced users.
恕我直言,这比推出自定义解决方案要好得多,后者带来了相当大的复杂性和无法升级站点的风险。请参见。
IMHO this is much better than rolling a custom solution which poses considerable complexity and risk of not being able to upgrade your site. See Share tables across instances (not recommended).
这篇关于在Drupal中合并数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!