liferay页面布局缩略图未显示

时间:2012-11-02 14:30:26

标签: url layout liferay-6

问题是我无法看到页面布局的缩略图。我正在使用Liferay Portal EE 6.1.20。

当我去管理 - >页面布局,我看不到缩略图。

很少有事情

  1. 我没有使用OOB Liferay,它是Liferay捆绑为自定义门户解决方案的自定义解决方案

  2. 这个东西在Liferay OOB中运行正常,所以必须有一些配置问题

  3. 我尝试使用Firebug进行调试,并且能够从指定的URL中获取图像。

  4. 上下文路径已从/更改为/portal

  5. 生成的图片网址与此/portal/layouttpl/custom/1_2_columns_ii.png类似。浏览器本身也无法访问它。

  6. /portal/html/portal/wap/等其他网址正常工作。只有/portal/layouttpl才允许访问静态资源。

  7. 任何想法?

1 个答案:

答案 0 :(得分:3)

可能值得检查图像的文件权限。在我的Liferay 开发环境中,我将所有图像设置为777:

user@ubuntu:/usr/liferay/tomcat/webapps/ROOT/layouttpl/custom$ ll *.png
-rwxrwxrwx 1 root root 1801 Apr  2  2012 1_2_1_columns.png*
-rwxrwxrwx 1 root root 1798 Apr  2  2012 1_2_columns_ii.png*
-rwxrwxrwx 1 root root 1793 Apr  2  2012 1_2_columns_i.png*
-rwxrwxrwx 1 root root 1425 Apr  2  2012 1_column.png*
-rwxrwxrwx 1 root root 1923 Apr  2  2012 2_2_columns.png*
-rwxrwxrwx 1 root root 1718 Apr  2  2012 2_columns_iii.png*
-rwxrwxrwx 1 root root 1735 Apr  2  2012 2_columns_ii.png*
-rwxrwxrwx 1 root root 1618 Apr  2  2012 2_columns_i.png*
-rwxrwxrwx 1 root root 1852 Apr  2  2012 3_columns.png*
-rwxrwxrwx 1 root root 1740 Apr  2  2012 freeform.png*