Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Valérie barbot
ide : theme coding conventions
April 26, 2012 7:03 AM
Answer

Valérie barbot

Rank: Junior Member

Posts: 72

Join Date: April 7, 2009

Recent Posts

I use Liferay IDE to make Liferay Themes 6.1.
When I created a new theme, some directories are created: css, templates, images, and WEB-INF _diffs.
Coding conventions state that generally modified css files should be in _diffs.
But when I downloaded from SourceForge examples, there is no folder _diffs but changed files are in the original folders.
David H Nebinger
RE: ide : theme coding conventions
April 26, 2012 6:58 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

You have to check the version of the downloaded themes. I'm not sure when the _diffs folder was introduced, but it should be used in all 6.x themes.

You should also check the parent theme definition in build.xml. If there's no parent, the _diffs folder might not be necessary.
Hitoshi Ozawa
RE: ide : theme coding conventions
April 27, 2012 6:12 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

_diff directory is primary to make YOUR own modification to liferay' source so it'll be easier to upgrade liferay.
Dave Weitzel
RE: ide : theme coding conventions
April 29, 2012 6:53 AM
Answer

Dave Weitzel

Rank: Regular Member

Posts: 186

Join Date: November 18, 2009

Recent Posts

you put your changed versions and any new files in the _diffs/css _diffs/images _diffs/templates etc folders

when SDK builds the theme it merges these with the original Liferay files (from ROOT/html/themes/_unstyled if I remember right) to update the non-_diffs folders in your theme (you will see for instance all the images copied into the themeid/images folder including any you added/changed in _diffs/images.

when you deploy the theme (or package for distribution to others) the _diffs folder is not included as they are no longer of any use.

That is why any downloaded themes do not have a diffs folder. If you wanted to see what they changed you would have to use a comparison tool like beyondcompare. on Windows.