【问题标题】:Drupal 8 multiple sub domains using same Database and different designDrupal 8 多个子域使用相同的数据库和不同的设计
【发布时间】:2018-12-07 07:20:44
【问题描述】:

要求是多个子域使用相同的数据库和不同的设计 例如,我的主站点 URL 是 www.mysite.com。 我的要求是 www.sub1.mysite.com www.sub2.mysite.com www.sub3.mysite.com

我也试过Drupal Domain

我正在使用 drupal 8.6。

我怎样才能达到这个要求。

【问题讨论】:

  • 你想为所有域重复使用相同的drupal设置吗?
  • 是的,但这是www.mysite.com 父网站,所有其他网站都是子网站。所有子域都有不同的设计。
  • 你可以从这里得到想法http://www.uol.edu.pk/这是父网站,这些是http://isb.uol.edu.pk/http://sgd.uol.edu.pk/http://chem.uol.edu.pk/子域。

标签: drupal subdomain drupal-multi-domain


【解决方案1】:

您必须像这样实现 DRUPAL 8 的多站点结构。

-- core
-- modules
   -- contrib
   -- custom
-- themes
   -- contrib
   -- custom
-- sites
   -- site1
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
         -- files
   -- site2
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files
   -- site3
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files

供参考,请查看此链接,即https://www.drupal.org/docs/8/multisite/multisite-folder-structure-in-drupal-8

如需更多技术文章或帮助,请查看http://etutorialz.com

【讨论】:

  • 我们可以为多站点使用单一数据库吗?在文档中,他们声明 It is assumed that every site has its own database and code is shared as shown below.
  • 不,这是不可能的。为此,您必须使用 drupal.org/project/domain 。这很复杂但可行。
  • 我试过了,但没有成功。我不知道如何配置这个模块。
  • 请观看此视频,即youtube.com/watch?v=E_rP74-GFFQ 如果有帮助,请将我的答案标记为解决方案。
  • 如果这个答案对你有帮助,请把我的答案标记为解决方案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-11-18
  • 2014-11-12
  • 2018-10-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多