Page 1 of 1

Unable to modify HTML templates

Posted: Wed Mar 12, 2014 7:26 am
by gowthamgutha
I have downloaded the Eclipse Commerce Demo site and followed the instructions. I am able to open the site, modify the HTML web pages present in the directory, but when I open Eclipse later some modifications were not done.

How could I edit these html files?

Thanks in advance.

Re: Unable to modify HTML templates

Posted: Wed Mar 12, 2014 12:32 pm
by Theo Schumacher
Could you describe in more detail what you have done ? Did you modifications that were not saved ?

Re: Unable to modify HTML templates

Posted: Wed Mar 12, 2014 1:42 pm
by gowthamgutha
I mean, I have removed some of the elements in HTML page and also customized the CSS which were located in the site\target\mycompany\WEB-INF\templates folder and also site\target\mycompany\css folder (style.css).

I might have modified it twice or thrice. It worked for me but until recently. It is not working now, some modifications that I've done just before aren't saved.

They are saved for that particular session only, once after the server is restarted those changes are not taking effect.

Also, I have also replaced some images in the site\mycompany\img folder, but those images are also displayed only for that particular session., later those images are replaced by the default images.

Re: Unable to modify HTML templates

Posted: Mon Mar 17, 2014 4:10 am
by Theo Schumacher
You should not change something in the target directory as this directory is always overriden at each project build (say server start-up).

Also, the image library is recreated, at least for the demo images.

The style sheet should be changed in site/src/main/webapp/css/style.css
The templates in site/src/main/webapp/WEB-INF/templates


etc...

Re: Unable to modify HTML templates

Posted: Mon Mar 17, 2014 9:02 am
by gowthamgutha
Yes, thank you. I got it.