drupal视图和php代码的问题
我在 drupal 中设置了一个视图,并且在视图中使用了一些 jquery 代码,该代码根据文本框值隐藏了一些数据。
当我登录时,一切都工作正常。当我注销并匿名访问该块时,它无法正常工作。
我对 drupal 有点陌生,不知道从哪里开始排除故障。我认为这是一个权限问题,但是在视图上,在内容类型上,在哪里?
如果有人能给我一些从哪里开始寻找的指导,我将不胜感激。
谢谢
I have a view set up in drupal and I am using some jquery code within the view which hides some data based upon a text box value.
Everything is working fine for me when I am logged in. When I log out and access the block anonymously, it doesn't work correctly.
I am somewhat new to drupal, and don't know where to begin troubleshooting. I assume it is a permissions issue, but on the view, on the content type, where?
If anyone could give me some direction on where to start looking, I would greatly appreciate it.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会查看性能下的缓存设置。如果禁用所有功能,匿名的情况应该与经过身份验证的情况相同。
您可能还想尝试仅禁用块缓存,看看这是否可以解决您的问题。
I would look at the Caching settings under Performance. If you disable everything, it should look the same for anon as it does authenticated.
You may also want to try disabling just Block Caching and see if that fixes it for you.
发现问题 - 我没有授予匿名用户对自定义内容类型字段的查看权限。我选中了权限下的相应框,它现在可以工作了。
谢谢
Found the problem - I didn't have the view permissions granted to anonymous users for my custom content type fields. I checked the appropriate boxes under permissions and it is now working.
Thanks