Liferay主题配置Portlet组件默认无边框

创建主题工程,打开WEB-INF下的liferay-look-and-feel.xml文件,初始内容如下所示:
<?xml version="1.0"?>
<!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">


<look-and-feel>
	<compatibility>
		<version>6.2.5+</version>
	</compatibility>
	<theme id="rmfy-common" name="Rmfy Common" />
</look-and-feel>
修改后的代码如下( 此时使用该主题的页面默认无边框):
<?xml version="1.0"?>
<!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">


<look-and-feel>
	<compatibility>
		<version>6.2.5+</version>
	</compatibility>
	<theme id="rmfy-login" name="Rmfy Login" >
		<settings>
			<setting configurable="true" key="portlet-setup-show-borders-default" type="checkbox" value="false"></setting>	
		</settings>	
	</theme>
</look-and-feel>

猜你喜欢

转载自blog.csdn.net/mooncom/article/details/80094343