2017-07-04 68 views
0

我想在liferay 7中創建VM主題。我在package.json中進行了更改,並將templateLanguage更改爲vm。接下來,我更改了liferay-look-and-feel.xml,並將標記值更改爲cm,並進行了gulp構建。虛擬機文件被創建,但是當我把它部署到服務器上,我得到這樣的警告:
在Liferay 7中創建VM主題

09:53:24,368 WARN [Refresh Thread: Equinox Container: a046c07b-9d60-0017-134e-c4d1864b896c][ThemeHotDeployListener:129] Support of Velocity is deprecated. Update theme testTheme to use FreeMarker for forward compatibility. 

也是瀏覽器,控制面板和標題標籤不顯示,而是警告顯示如下:

An app that can VIEW com.liferay.admin.kernel.util.PortalProductNavigationControlMenuApplicationType$ProductNavigationControlMenu belongs here. Please contact the portal administrator or install such an app from the Liferay Marketplace. 

下面是如何顯示在瀏覽器的警告鏈接:Image of Warning Message

什麼可以是問題?

回答

0

當我將應用程序從6.2遷移到7時,我遇到了同樣的問題。Liferay 7支持freemarker模板語言。當我使用Velocity時,我曾經使用空白頁面和頁面不習慣顯示。我建議你使用freemarker。