2011-02-15 34 views
0

我正在嘗試啓用自定義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</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主題。

這是怎麼回事?

回答

1

確保爲主題設置了安全角色,否則將不會設置。

0

即使您已經自己發現了一些東西:官方支持的方法是使用插件sdk。有了這個,你可能不會有這個問題。強烈建議修改門戶代碼本身(考慮升級的維護工作),並且不支持ext-plugin(或5.2.x的ext-environment)中的主題。

這就是說,你可能可以讓他們工作,但你讓你的生活比必要的更難。