LifeRay:进行战争时,我的更改将被删除 [英] LifeRay: When I build the war, my changes are removed

查看:97
本文介绍了LifeRay:进行战争时,我的更改将被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用eclipse和tomcat建立了一个liferay环境(我第一次使用它们中的任何一个),

I have setted up a liferay environament with eclipse and tomcat (first time I use any of them),

我想进行一些更改,例如,在navigation.vm的末尾添加<p>:

And I want to make some changes, for example, I add a <p> in the end of the navigation.vm:

但是当我发动战争时,像这样:

But when I build the war, like this:

我的更改消失了

知道我在做什么错吗?

推荐答案

可能您正在尝试在

yourTheme/docroot/templates

yourTheme/docroot/templates

但是你不能. 您必须在

but you can't. You have to create a new folder called _diffs under

yourTheme/docroot

yourTheme/docroot

在其中复制docroot的文件夹结构,在这种情况下,您只需要template文件夹即可在其中创建一个名为portal-normal.vm的新文件.

in which you copy the folders structure of docroot, in this case you need only of template folder in which create a new file called portal-normal.vm.

这就是您可以编辑的文件!

And that will be the file you can edit!

有关更多详细信息: https://www .liferay.com/it/documentation/liferay-portal/6.1/development/-/a​​i/creating-liferay-them-7

for more details : https://www.liferay.com/it/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7

PS
显然,您可以复制portal-normal.vm

PS
Obviously you can copy the original content of portal-normal.vm

PPS
我真的不知道为什么liferay不创建_diffs文件夹作为主题项目的默认值!

PPS
I really don't know why liferay does not create the _diffs folder as default of a theme project!

编辑

我忘了说你必须在_diffs

这篇关于LifeRay:进行战争时,我的更改将被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆