Drupal 6节点参考视图,不同角色需要不同的视图
对于一个角色(从属),视图现在使用 user:uid 参数返回与登录用户相同的值。因此,用户将看到一系列选项,具体取决于他们创建的内容。
我们有另一个角色(主控),它应该根据不同的规则集看到此选择的选项列表。它们的选项列表应包含所有创建的选项 - 不带 user:uid 参数。
节点的内容类型是profile,字段是nodereference。有没有办法允许主帐户将所有节点视为可选选项,而其他帐户只能看到他们创建的节点?
For one role (slave) The view right now uses the user:uid argument to return the same value as the user that is logged in. So the user will see a list of options depending on the content they have created.
We have another role (master) that should see a list of options for this selection depending on a different set of rules. Their list of options should contain all of the created options - without the user:uid argument.
The content type of the node is profile, and the field is a nodereference. Is there a way to permit the master account to see all of the nodes as a selectable option, and the other to only see the nodes that they have created?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您位于视图的编辑表单中时,您可以单击“添加显示”为您的视图设置多个显示(页面、块、提要、内容窗格、附件)。
创建另一个显示后,您可以转到“基本设置”下的“访问”,并使用“覆盖”按钮选择要应用于新创建的视图显示的访问规则。
覆盖可以用于视图显示的参数、字段、排序标准、过滤器等。这使得一个视图可以控制许多不同的显示,每个显示可以有自己独特的设置以及继承一些默认设置。
When you are on your view's edit form, you can click 'Add display' to setup multiple displays for your view (pages, blocks, feeds, content panes, attachments).
Once you have created another display you can then go to 'Access' under 'Basic settings' and use the 'Override' button to choose the access rules that you want to apply to your newly created view display.
Overrides can be used on view display's arguments, fields, sorting criteria, filters, etc. This enables one view to control many different displays each of which can have their own unique settings as well as inherit some default settings.