Drupal CCK - 无限字段集
在 Drupal CCK 中,可以将值的数量设置为“无限制”,以便用户可以单击“添加另一个”,然后会弹出一个新字段。
对于一组 CCK 字段来说这也可能吗?我需要将文本框和下拉列表链接在一起,并且让我的用户能够向内容类型添加无限量。我见过有关人们致力于自己的实现的帖子,但尚未看到有关此主题的任何内容。
In Drupal CCK it is possible to set the Number of Values to 'Unlimited,' so that the user can click 'Add Another' and a new field will pop up.
Is this somehow possible with a group of CCK fields as well? I need to have a textbox and dropdown linked together, and have my users be able to add an unlimited amount to the content-type. I've seen threads about people working on their own implementation, but have yet to see anything be released on this topic.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Flexifield 模块,有关它的更多详细信息(来自其项目页面):
另请参阅类似这样的其他模块的一些链接。
Flexifield module, some more details about it (from its project page):
Also see there some links to other modules like this.
CCK 3.x 实验开发版本有一种方法可以做到这一点。这并不是真正推荐的,但有关 CCK 中多组状态的更多信息,请查看此帖子:http: //drupal.org/node/494100。
目前更推荐的替代方案是专门针对您的需求推出您自己的复合字段模块。我在这方面取得了成功,并从这篇文章中得到了想法和灵感: http://www.poplarware .com/articles/cck_field_module。
There is a way to do this with the CCK 3.x experimental development version. This isn't really recommended, but for more information on the state of multigroup in CCK, check this post out: http://drupal.org/node/494100.
A more recommended alternative for now would be to roll your own compound field module specifically for your needs. I have had success in doing this and got the idea and inspiration from this article: http://www.poplarware.com/articles/cck_field_module.