Drupal:可以为节点类型的所有 cck 字段分配查看权限吗?
我创建了一个自定义内容类型:产品
该产品有一个图像(cck 文件字段)和一些其他构成其内容定义的 cck 字段。
默认情况下,当匿名用户查看已发布的产品时,他们无权查看图像或任何其他 cck 字段。
就我个人而言,我真的不想总是进入并更改属于该节点的每个单独字段的权限。
是否可以在节点级别设置权限并将其级联到各个字段?我尝试了一些设置节点级别访问的不同模块..但我相信这就是他们所做的全部。他们实际上并没有深入到该领域。
谢谢
I've created a custom content type: product
This product has an image (cck file field) and a few other cck fields that make up it's content definition.
By default, when an anonymous user looks at a published product, they do not have permission to view the image or any other cck field.
Personally, I don't really want to have to always go in and alter the permissions for each individual field that belongs to the node.
Is it possible to set the permissions at the node level and have it cascade down to the individual fields? I've tried a few different modules that set node level access.. but I believe that is all they do. They don't actually drill down into the fields.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该禁用“内容权限”模块。您现在可能已启用它。默认情况下,如果最终用户可以访问该节点(禁用该模块后),则所有字段都将可见。
You should disable the "content permissions" module. You probably have it enabled right now. By default all fields will be visible if the node is accessible to the end user (after you disable the module).