尝试在Liferay 6.2.1 CE&amp ;;中设置主题设置。 EE。 我的liferay-look-and-feel.xml看起来像:
<?xml version="1.0"?>
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.0.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_0_0.dtd">
<look-and-feel>
<compatibility>
<version>6.2.0+</version>
</compatibility>
<theme id="wwhs-login-theme" name="wwhs-login-theme" >
<settings>
<setting type="select" configurable="true"
key="choose-login-theme-wwhs"
options="client-operations-login-theme,client-experience-login-theme"
value="client-experience-login-theme" ></setting>
</settings>
</theme>
</look-and-feel>
当我尝试构建它时,得到以下错误:
07:48:57,413 ERROR [localhost-startStop-2] [ThemeLocalServiceImpl:268] com.liferay.portal.kernel.xml.DocumentException:第10行的错误 document:必须为元素类型声明属性“configurable” “设置”。嵌套异常:必须声明属性“configurable” 对于元素类型“设置”。
我错过了什么?
答案 0 :(得分:0)
找到答案。此错误是由于错误的DOCTYPE配置造成的。
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.0.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_0_0.dtd">
需要更改为
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.2.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_2_0.dtd">
6.0.0 DTD文件没有可在以后版本中添加的可配置(和附加)属性。
参考:http://www.liferay.com/community/forums/-/message_boards/message/16388636