如何删除生成项目生成的虚拟内容?
这里可以问有关Drupal的问题吗? 我认为答案是“是”并提出我的问题。
我使用“生成项目”(Devel 模块的一部分)来生成一些虚拟内容,但我找不到任何删除它们的选项。
如何从我的数据库中删除它们?
Is it allowed to ask questions about Drupal here?
I assume the answer is "yes" and ask my question.
I used Generate items (a part of the Devel module) to generate some dummy content, but I can not find any option to delete them.
How can I delete them from my database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过使用视图批量操作模块:http://drupal.org/project/views_bulk_operations?
Have you tried using Views Bulk Operations module: http://drupal.org/project/views_bulk_operations ?
创建内容时,您可以选择“在生成新内容之前删除这些节点类型中的所有内容”。如果勾选并将生成的节点设置为0,则只会删除所选类型的节点,而不会生成新的节点。但是,这也会删除不是由 devel 创建的节点。
根据 Devel 作者的说法,Devel 模块不会跟踪其生成的内容,因此您必须使用其他东西,例如视图批量操作或 delete_all 模块。
When you create content you have an option "Delete all content in these node types before generating new content." If you check it and set the nodes to be generated to 0, it will only delete the nodes of the selected type without generating new ones. However, this will also delete nodes not created by devel.
According to Devel authors, Devel module is not going to keep track of its generated content, so you have to use something else, like views bulk operations or delete_all modules.
转到 /admin/content/node,选择它们,然后选择“删除所选内容”
Go to /admin/content/node, select them, and select "Delete selected"