是否有用于导入文本和图像的Drupal模块?

时间:2022-08-22 08:53:32

I'm very new to Drupal, and am wondering if there's an API that external programs can call to transfer text and images directly into my Drupal site.

我对Drupal很新,我想知道外部程序是否可以调用API将文本和图像直接传输到我的Drupal站点。

2 个解决方案

#1


Yes. There are several ways to accomplish this in Drupal:

是。有几种方法可以在Drupal中完成此任务:

  1. If you're doing a one-time import, try the Node Import module --- this lets you import content from a CSV file.
  2. 如果您正在进行一次性导入,请尝试使用节点导入模块---这可以从CSV文件导入内容。

  3. If you want your Drupal site to provide a web-based API to which new content can be POSTed (via, for example, XMLRPC), check out the Services module.
  4. 如果您希望Drupal站点提供可以POST新内容的基于Web的API(例如,通过XMLRPC),请查看“服务”模块。

  5. If you want your Drupal site to periodically retrieve content from other sites (RSS feeds, for example), check out FeedAPI.
  6. 如果您希望Drupal站点定期检索其他站点的内容(例如RSS源),请查看FeedAPI。

  7. If you want to write your own PHP code to create new content, check out this article for an introduction.
  8. 如果您想编写自己的PHP代码来创建新内容,请查看本文以获取介绍。

#2


Not sure what you mean by having a module for importing text, but there is one specifically for images: the Image module. Here is an excerpt from its project page:

不知道你有一个用于导入文本的模块是什么意思,但有一个专门用于图像:Image模块。以下是其项目页面的摘录:

... allows users with proper permissions to upload images into Drupal. Thumbnails and additional sizes are created automatically.

...允许具有适当权限的用户将图像上传到Drupal。将自动创建缩略图和其他尺寸。

Images could be posted individually to the front page, included in stories or grouped in galleries.

图像可以单独发布到首页,包含在故事中或分组在图库中。

Importing text can be performed directly as one of the other existing entity types.

导入文本可以直接作为其他现有实体类型之一执行。

#1


Yes. There are several ways to accomplish this in Drupal:

是。有几种方法可以在Drupal中完成此任务:

  1. If you're doing a one-time import, try the Node Import module --- this lets you import content from a CSV file.
  2. 如果您正在进行一次性导入,请尝试使用节点导入模块---这可以从CSV文件导入内容。

  3. If you want your Drupal site to provide a web-based API to which new content can be POSTed (via, for example, XMLRPC), check out the Services module.
  4. 如果您希望Drupal站点提供可以POST新内容的基于Web的API(例如,通过XMLRPC),请查看“服务”模块。

  5. If you want your Drupal site to periodically retrieve content from other sites (RSS feeds, for example), check out FeedAPI.
  6. 如果您希望Drupal站点定期检索其他站点的内容(例如RSS源),请查看FeedAPI。

  7. If you want to write your own PHP code to create new content, check out this article for an introduction.
  8. 如果您想编写自己的PHP代码来创建新内容,请查看本文以获取介绍。

#2


Not sure what you mean by having a module for importing text, but there is one specifically for images: the Image module. Here is an excerpt from its project page:

不知道你有一个用于导入文本的模块是什么意思,但有一个专门用于图像:Image模块。以下是其项目页面的摘录:

... allows users with proper permissions to upload images into Drupal. Thumbnails and additional sizes are created automatically.

...允许具有适当权限的用户将图像上传到Drupal。将自动创建缩略图和其他尺寸。

Images could be posted individually to the front page, included in stories or grouped in galleries.

图像可以单独发布到首页,包含在故事中或分组在图库中。

Importing text can be performed directly as one of the other existing entity types.

导入文本可以直接作为其他现有实体类型之一执行。