从 CSV 导入 Drupal 7 节点 [英] Drupal 7 Node Import from CSV

查看:18
本文介绍了从 CSV 导入 Drupal 7 节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 CSV 中的一些内容导入 Drupal 7.我已经尝试了 Feeds 模块,但它不允许我将字段与我的内容类型相匹配——如据我所知——这是一个问题.

I'm trying to import some content from a CSV into Drupal 7. I've tried the Feeds module but it doesn't allow me to match fields to my content type—as far as I can tell—which is a problem.

以前——在 Drupal 6 中——我使用了节点导入,但是 Drupal 7.有什么建议吗?

Previously—in Drupal 6—I have used Node Import but this isn't supported in Drupal 7. Any suggestions?

推荐答案

feeds 模块会起作用,你只需要做一个标题工作.

The feeds module will work, you just need to do a title work.

  1. 在 admin/structure/feeds/create 中创建一个新的导入器

  1. Create a new importer at admin/structure/feeds/create

更改解析器设置以使用 CSV

Change your Parser settings to use CSV

检查保存后的 CSV 解析器设置并确保选择了正确的分隔符

Check the CSV Parser settings once saved and make sure the correct delimiter is selected

选择节点处理器";作为您的处理器类型中的处理器

Select "Node Processor" as your processor in your Processor type

验证您的处理器设置.选择您的内容类型.为节点作者设置用户很重要.目前有一个bug,如果作者设置为匿名会导致错误.

Verify your Processor settings. Select your content type. It is important to set a user for for the node author. There is currently a bug that will cause an error if the author is set to anonymous.

使用 CSV 中的列名称将您的列映射到 Drupal 7 字段.

Using the column names in your CSV map your columns to your Drupal 7 fields.

最后,转到/import 并运行您的提要导入.

Finally, go to /import and run your feed import.

这应该对你有用.

这篇关于从 CSV 导入 Drupal 7 节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆