Liferay theme develop - $theme.getSetting()

来源:互联网 发布:青果教务网络管理系统 编辑:程序博客网 时间:2024/05/01 12:41

in liferay-look-and-feel.xml, we can write settings like

<setting key="my-greeting" value="This is Tina's greeeeeeeeeeting!"></setting>


In portal_normal.vm, we can use $theme.getSetting("my-greeting") to get the value. I use Liferay EE 6.1.20, it doesn't work.

But if we use $themeDisplay.getTheme().getSetting("my-greeting"), it works well.