Drupal 视图和待办事项清单
想知道是否有人可以告诉我以下内容是否可以在视图中实现。
我已经安装了待办事项模块 - http://drupal.org/project/to_do 然后,我创建了自己的视图,其中列出了在特定有机组中创建的所有任务,效果很好。
添加的字段之一是待办事项按钮字段,它使用户能够将视图列表中的任务标记为已完成。
我遇到的问题是该组的所有用户都可以看到该按钮和按钮。能够将任务标记为已完成。
如果当前登录的用户是该节点的作者(执行任务),有没有一种方法可以使用视图仅显示该按钮。
Wondered if anyone can tell me whether the following is possible within views.
I have installed To do module - http://drupal.org/project/to_do
I then created my own view which lists all the tasks created in a particular Organic Group, which works lovely.
One of the fields ive added as the to do button field which gives the user the ability to mark a task as finshed from the view listing.
the problem I have is that all users part of that group can see that buton & has the ability to mark the task as finished.
Is there a way I can use views to only show that button if the current logged in user is the author of that node( to do task).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
视图有不同的模板。其中之一的所有字段都被打印。您可以在该模板中检查用户是否是作者,然后仅打印待办事项字段。
您可以单击视图内的主题信息链接来获取所使用的模板列表以及您可以称为供视图使用的自定义模板。
Views have different templates. In one of them all the fields are being printed. You could in that template make a check if the user is the author and then only print the todo field.
You cam click the theme information link inside the view to get a list of templates that's used and what you could call a custom template for views to use it.
这只会显示用户创建的内容。这是一个非常简单的参数
This will only show content the user created. It's a pretty simple argument