Drupal保留复选框模块?
我正在这里工作一个 drupal 站点:selkirk.treethink.net
我安装了 CCK 和视图模块,因此在前端您会看到使用 CCK 创建的“请求工作”页面。在后端管理员和学生可以使用视图模块通过该表单查看所有工作帖子。
我需要添加一个复选框,提交作品的人看不到,但学生可以在通过“视图”列出作品的页面中看到。该复选框只能被选中一次,因为它将为该学生保留工作。但是选中它的同一个学生需要能够取消选中它......并且只有该学生(或管理员)
换句话说:只是位于“视图”页面上的一个小框,学生可以选中它,然后就不能除了选中它的学生或管理员之外,其他人可以在事后取消选中它。
有没有一个模块可以做到这一点?
谢谢,韦德
I have a drupal site I'm working on here: selkirk.treethink.net
I have CCK and Views modules installed, so on the frontend you see the Request Work page created using CCK. On the backend admins and students can view all the work post through that form with the Views module.
I need to add a checkbox that the person submitting the work can't see but students can see in the page that lists the work through "Views". This checkbox will need to only be able to be checked once as it will reserve the job for that student. But the same student that checked it needs to be able to uncheck it...And only that student (or an admin)
In other words: Just a little box that sits on the "Views" page that a student can check and then no one else can uncheck it afterwards except the student that checked it or an admin.
Is there a module that can do this?
Thanks, Wade
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
阅读您的问题时,我的第一个想法是标志模块。问题队列中已经有一个线程完全关于您的问题: http://drupal.org/node/624746< /a>.归根结底,该标志可以完成大部分工作,但您必须自己编写一些代码(或者可能使用 规则模块)来注册哪个用户标记了该节点。
另一种选择是使用工作流程模块并创建“已分配”状态。我自己对工作流程没有做过太多工作,所以我无法真正告诉您哪个选项更好。
My first thought when reading your question was Flag module. There is already a thread in the issue queue about exactly your question: http://drupal.org/node/624746. What it comes down to, is that flag can do most of the job, but you would have to write some code yourself (or possibly use the Rules module) to register which user flagged the node.
Another option would be to use the Workflow module and create an 'assigned' state. I have not done much with workflow myself so I can't really tell you which option is better.
字段权限模块允许您指定 CCK 字段的创建、查看和编辑权限。我不认为它会做你想做的一切,但这是一个开始。
The Field Permissions module lets you specify create, view, and edit permissions for CCK fields. I don't think it will do everything you want, but it's a start.