【问题标题】:Liferay theme won't enable?Liferay 主题无法启用?
【发布时间】:2011-02-15 21:16:31
【问题描述】:

我正在尝试启用自定义 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>

ROOT/WEB-INF/classes,我有portal-ext.propertiesdefault.theme.id=mytheme

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

这到底是怎么回事?

【问题讨论】:

    标签: java css portlet liferay


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2013-05-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-05-26
        • 1970-01-01
        • 1970-01-01
        • 2014-03-17
        相关资源
        最近更新 更多