在 Drupal 6 中创建用户可以添加字段的节点
我希望用户能够创建多个文本字段,并在该字段的 3 个选项之一中选择“是”或“否”。
例如:
Text field = "24/7 support", option 1=(y/n), option 2=(y/n), option 3= (y/n)
Text field = "bon-bons", option 1=(y/n), option 2=(y/n), option 3= (y/n)
...该内容类型最多包含 25 个文本字段。
有谁知道如何实现这一点?
基本上我需要实现一个系统,用户可以在其中轻松创建和编辑“功能列表”。然后将这些功能中的每一项分配给 3 个包之一。
I would like users to be able to create multiple text fields and select "yes" or "no" on one of 3 options for that field.
For instance:
Text field = "24/7 support", option 1=(y/n), option 2=(y/n), option 3= (y/n)
Text field = "bon-bons", option 1=(y/n), option 2=(y/n), option 3= (y/n)
... with up to 25 text fields in that content type.
Does anyone have any idea how to accomplish that?
Basically I need to implement a system, where users can create and edit a "Features list" easily. then assign each one of those features to one of 3 packages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你想要一个网格字段。我根本不明白文本字段如何用于此目的。
Sounds like you want a grid field. I don't see how a text field would be useable for this at all.
1) 首先创建一个包含 25 个字段和您提到的 3 个选项的内容类型。
* 根据您提到的帖子,您最多只需要 25 个帖子。
2) 使用 jquery 仅显示一个字段,并且他们可以随时单击更多链接以获取其他字段。
如果您不了解 jquery 以及如何实现它,请返回。
干杯,
维沙尔
1) First create a content type with 25 fields and the 3 options you mentioned.
* As per your post you mentioned you only want upto 25 posts .
2) Use jquery for displaying only one field and they can always click on a more link for additional fields.
If you don't know jquery and how to implement this then revert back.
Cheers,
Vishal