- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
每当我将图像(DAV 或 HTML)上传到我的 Plone 站点时,图像就会被上传和创建。我可以引用图像,它显示在文件夹“画廊” View 中。
但是,当我访问该图像以查看它时,Plone 说我没有上下文的权限(作为管理员)。
我从自定义模板中的错误中了解到这种行为,但我根本没有接触 image_view。
此实例的错误日志(在 Debug模式下)没有显示任何痕迹。
我重建了目录但没有成功。
在哪里可以查看和/或设置 image_view
的权限?
更新
好的,一定是主题相关的?!当我卸载我的主题时,一切正常。
更新二
是主题。特别是 theme_base
。每当我在 Plone 中安装我的主题时,我都会看到 plonetheme.mytheme
作为 theme_base
。当我将它切换到 Sunburst Theme
时,image_view 再次工作,但其他一切都没有。
我的 skins.xml
应该没问题:
<object name="mytheme_custom"
meta_type="Filesystem Directory View"
directory="plonetheme.mytheme:skins/mytheme_custom"/>
<skin-path name="plonetheme.mytheme" based-on="Sunburst Theme">
<layer name="mytheme_custom"
insert-after="custom"/>
</skin-path>
主题是在this tutorial之后完成的
更新三
从 ZMI 的 error_log
中删除 Unauthorized
后(感谢@mathias),我能够追踪并修复我的 main_template.pt 中有问题的行
。现在可以了。非常感谢!
最佳答案
由于我的评论是这个问题的答案,所以我也将其添加为答案。
For better debug infos, please remove Unauthrorized (Exception) from the ignored exceptions in the error_log (ZMI).
Also make sure, debug mode and verbose security is on.
Security implementation should be python.
If you now trigger the error, you should see what's wrong.
关于view - Plone 4.3 - image_view 突然要我登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39604006/
如果我这样做,它有时会设置与 image_view 中相同的图像。例如,如果 R.drawable.cat__5_ 在 image_view 中,我想从 R.drawable.cat__3_,R.dr
每当我将图像(DAV 或 HTML)上传到我的 Plone 站点时,图像就会被上传和创建。我可以引用图像,它显示在文件夹“画廊” View 中。 但是,当我访问该图像以查看它时,Plone 说我没有上
我是一名优秀的程序员,十分优秀!