Drupal 7节点从CSV导入 [英] Drupal 7 Node Import from CSV
本文介绍了Drupal 7节点从CSV导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从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?
推荐答案
Feed模块将工作,您只需要做一个标题工作。
The feeds module will work, you just need to do a title work.
- 在admin / structure / feeds / create下创建新的进口商
- 将您的Parser设置更改为使用CSV
- 保存后检查CSV解析器设置,并确保选择正确的分隔符
- 在处理器类型中选择处理器作为处理器
- 验证您的处理器设置。选择您的内容类型。 为节点作者设置用户很重要。目前有一个错误,如果作者设置为匿名,将会导致错误。
- 使用CSV中的列名将您的列映射到Drupal 7字段。
-
最后,转到/导入并运行您的Feed导入。
- Create a new importer at admin/structure/feeds/create
- Change your Parser settings to use 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
- 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.
- Using the column names in your CSV map your columns to your Drupal 7 fields.
Finally, go to /import and run your feed import.
应该为您做。 p>
That should do it for you.
这篇关于Drupal 7节点从CSV导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文