drupal中有没有类似于联系表单的可定制表单?
我需要一个表单,使用户能够在三个字段(内容、地点和时间)中输入事件信息。然后我希望能够以表格形式呈现这些事件。我不懂PHP。 drupal 有用于此目的的模块吗?
I need a form to enable user to enter event info in three fields (what, where, and when). Then I would like to be able to present the events in tabular form. I don't know PHP. Does drupal have a module for this purpose?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
内容构建工具包 (CCK) 允许您使用自定义字段创建内容类型,并自动生成表单对于这些内容类型。您可能还需要 日期字段 来表示时间。
The content construction kit (CCK) allows you to create content types with custom fields, and automatically produces the forms for those content types. You'll probably also want the date field for the when.
您可以使用视图将数据显示为表格。
http://www.drupal.org/project/views
You would use Views to display data as a table.
http://www.drupal.org/project/views
将为您随时随地创建快速表单。
这个有点复杂,但更明确,常见的地方,并且高度可扩展。这里还有一个不错的小教程。
Will create quick forms for you on the go.
This one is a little bit more envolved, but more definitive, common place, and HIGHLY extensible. Here's a nice little tutorial as well.
如果您不希望当用户输入数据并提交表单时结果(事件)变成节点,那么您应该查看 webform 模块。
不久前,我通过构建一个“麦当劳垄断”跟踪器向我的同行“演示”了这一点,任何人都可以使用它来输入他们的作品,然后我将视图设置为块来显示每个人作品的聚合结果。
我们没有赢得任何东西,但这可能就是您正在寻找的。
If you don't want the results (events) to turn into nodes when the user enters the data and submit the form, then you should look into the webform module.
A while back I "demoed" this to my peers by building a "mcdonald's monopoly" tracker that anyone could use to input their pieces and then I setup a view as a block to display the aggregate result for everyone's pieces.
We didn't win anything, but this may be what you are looking for.