是否可以将自定义字段添加到 Drupal 分类术语中?
我想在 drupal 分类术语中添加一个日期字段,以及默认的“标题”和“描述”
是否有一些技术/php/模块可以让我做到这一点? 可以用CCK吗?
我需要能够在同一视图中显示新字段,以呈现引用该术语的内容节点。
目前,我已经使用 CCK 将日期字段添加到内容节点,并通过视图显示。但这并不是我想要的,我只想每学期更新一个日期。
I'd like to add a date field to a drupal taxonomy term, alongside the default "title" and "description"
Is there some technique/php/module that lets me do this?
Is it possible to do with CCK??
I need to be able to display the new field in the same view presenting the content nodes referencing the term.
At the moment, I've added a date field to the content nodes with CCK, and it's displayed by the view. But that's not exactly what I'm going for, I just want to update one date per term.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Drupal 7 中添加了将字段附加到术语,但这仍处于测试阶段。我建议用 Drupal 6 中的节点参考字段替换您的分类法。
Attaching fields to terms is added in Drupal 7, but that's still beta. I'd suggest replacing your taxonomy with a node reference field in Drupal 6.
有一个模块可以做到这一点:术语字段。有关此模块的更多详细信息(来自其项目页面):
There's a module to do exactly this: Term Fields. Some more details about this module (from its project page):
正如 Scott 所说,Drupal 7 将此作为核心的一部分。有一些将节点附加到分类的模块(例如 分类节点),查看这些模块可能也会有所帮助。
As Scott said, Drupal 7 has this as part of core. There are some modules that attach nodes to taxonomy (e.g. Taxonomy Node) that might also be helpful to look at.