Foren

Home » Liferay IDE » English

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Valérie barbot
ide : theme coding conventions
26. April 2012 07:03
Antwort

Valérie barbot

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 7. April 2009

Neue Beiträge

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
26. April 2012 06:58
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 7157

Eintrittsdatum: 1. September 2006

Neue Beiträge

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
27. April 2012 18:12
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

_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
29. April 2012 06:53
Antwort

Dave Weitzel

Rang: Regular Member

Nachrichten: 186

Eintrittsdatum: 18. November 2009

Neue Beiträge

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.