Java Liferay theme赢得';不能启用?

Java Liferay theme赢得';不能启用?,java,css,portlet,liferay,Java,Css,Portlet,Liferay,我正在尝试启用自定义liferay主题 主题位于webapps/ROOT/html(目前基本上是经典的副本),我对liferay look and feel.xml进行了如下修改: <theme id="mytheme" name="mytheme"> <root-path>/html/themes/cloudprint</root-path> <templates-path>${root-path}/templates</t

我正在尝试启用自定义liferay主题

主题位于
webapps/ROOT/html
(目前基本上是经典的副本),我对
liferay look and feel.xml
进行了如下修改:

<theme id="mytheme" name="mytheme">
    <root-path>/html/themes/cloudprint</root-path>
    <templates-path>${root-path}/templates</templates-path>
    <images-path>${root-path}/images</images-path>
    <template-extension>vm</template-extension>
    <roles>
        <role-name>User</role-name>
    </roles>
    <color-scheme id="01" name="Blue">
        <css-class>blue</css-class>
        <color-scheme-images-path>${images-path}/color_schemes/${css-class}</color-scheme-images-path>
    </color-scheme>
    <color-scheme id="02" name="Green">
        <css-class>green</css-class>
    </color-scheme>
    <color-scheme id="03" name="Orange">
        <css-class>orange</css-class>
    </color-scheme>
</theme>

/html/themes/cloudprint
${root path}/模板
${root path}/images
虚拟机
使用者
蓝色
${images path}/color_schemes/${css class}
绿色
橙色
ROOT/WEB-INF/classes
中,我有
portal-ext.properties
default.theme.id=mytheme

我还尝试了
default.regular.theme.id
也没有效果。一切仍然使用
classic
主题


到底发生了什么事?

确保为主题设置了安全角色,否则它将不会被设置。

即使您自己似乎已经找到了一些东西:官方支持的方法是使用插件sdk。有了这个,你可能就不会有这个问题了。强烈反对修改门户代码本身(考虑升级的维护工作),并且不支持ext插件(或5.2.x的ext环境)中的主题

话虽如此,你也许能让他们工作,但你让你的生活变得比必要的更艰难