简体   繁体   English

Drupal如何将相关内容从一个drupal站点发布到其他站点

[英]Drupal how to blog related content from one drupal site to other

I have an old Drupal site with customized Layouts by taking a basic theme and adding modules. 我有一个旧的Drupal站点,通过基本主题和添加模块自定义布局。 Now I am trying to change theme which has predefined modules and using the completely new database. 现在我正在尝试更改具有预定义模块和使用全新数据库的主题。

How can I port blog related content, along with all custom fields, into my new database? 如何将与博客相关的内容以及所有自定义字段移植到我的新数据库中? As I am new to Drupal I cannot find the exact way to do it. 由于我是Drupal的新手,我找不到确切的方法。 I tried to copy directly from the database but the data did not port properly and it is breaking. 我试图直接从数据库复制,但数据没有正确移植,它正在破坏。

If you are comfortable writing custom Drupal code you could use the Drupal migrate module to migrate content from Drupal to Drupal. 如果您习惯编写自定义Drupal代码,可以使用Drupal 迁移模块将内容从Drupal迁移到Drupal。 There are quite some good resources about this topic. 关于这个主题有很多很好的资源。

https://drupalize.me/blog/201608/custom-drupal-drupal-migrations-migrate-tools https://drupalize.me/blog/201608/custom-drupal-drupal-migrations-migrate-tools

Alternatavily you can use the Drupal feeds module as described in this question: https://drupal.stackexchange.com/a/25968/46398 where you could import content using the RSS feed. 或者,您可以使用Drupal feeds模块,如此问题中所述: https//drupal.stackexchange.com/a/25968/46398您可以使用RSS源导入内容。

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

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