Fórumok

ide : theme coding conventions

Valérie barbot, módosítva 12 év-val korábban

ide : theme coding conventions

Junior Member Bejegyzések: 72 Csatlakozás dátuma: 2009.04.07. Legújabb bejegyzések
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.
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: ide : theme coding conventions

Liferay Legend Bejegyzések: 14918 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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.
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: ide : theme coding conventions

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
_diff directory is primary to make YOUR own modification to liferay' source so it'll be easier to upgrade liferay.
thumbnail
Dave Weitzel, módosítva 11 év-val korábban

RE: ide : theme coding conventions

Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2009.11.18. Legújabb bejegyzések
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.