【问题标题】:How to embed image link in drupal?如何在drupal中嵌入图像链接?
【发布时间】:2017-12-07 00:30:16
【问题描述】:

我想从远程服务器添加图像。我有图片链接,例如http://www.qygjxz.com/data/out/114/5095827-image.jpg 但是 drupal 只提供上传图片选项。我不想存储图像。我想在不存储的情况下显示它。

【问题讨论】:

  • 你想在哪里添加图片?给我们详细信息!
  • 在图片字段中,我想添加链接作为来源,但只有上传选项。

标签: drupal drupal-7 drupal-modules drupal-8


【解决方案1】:

您无法使用默认图像字段执行此操作。 (假设您使用的是 Drupal 8)
您可以做的是使用纯文本字段来输入和存储图像 URL,然后在模板文件中使用该字段值作为图像源。

或者,您可以直接使用 ck-editor 上传图像或使用外部图像 url,仅使用外部 URL,您需要取消选中 admin > configuration > text formats and editors > configure 中的“Enable image uploads”选项(您想要的文本格式基本/full/restricted 等)。

【讨论】:

    【解决方案2】:

    您好,如果您运行的是 drupal 8,有一个模块“Remote Image”来处理这个https://www.drupal.org/project/remote_image

    【讨论】:

      猜你喜欢
      • 2010-10-21
      • 1970-01-01
      • 2019-07-10
      • 2015-09-07
      • 1970-01-01
      • 2018-08-24
      • 1970-01-01
      • 2011-12-22
      • 2015-07-07
      相关资源
      最近更新 更多