Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
220 views
in Technique[技术] by (71.8m points)

eclipse - LifeRay: When I build the war, my changes are removed

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

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

enter image description here

But when I build the war, like this:

enter image description here

My change dissapears:

enter image description here

Any idea what I'm doing wrong?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

probably you're trying to edit the portal-normal.vm under

yourTheme/docroot/templates

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

yourTheme/docroot

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!

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

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

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

EDIT

I forgot to say that you have to copy the folder structure of docroot in _diffs


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...