在 Drupal 6 中创建用户可以添加字段的节点

发布于 2024-12-14 14:47:19 字数 355 浏览 5 评论 0原文

我希望用户能够创建多个文本字段,并在该字段的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

誰認得朕 2024-12-21 14:47:19

听起来你想要一个网格字段。我根本不明白文本字段如何用于此目的。

Sounds like you want a grid field. I don't see how a text field would be useable for this at all.

少女七分熟 2024-12-21 14:47:19

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文