Fóruns

Início » Liferay IDE » English

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Valérie barbot
ide : theme coding conventions
26 de Abril de 2012 07:03
Resposta

Valérie barbot

Ranking: Junior Member

Mensagens: 72

Data de entrada: 7 de Abril de 2009

Mensagens recentes

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 de Abril de 2012 06:58
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11299

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

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 de Abril de 2012 18:12
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

_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 de Abril de 2012 06:53
Resposta

Dave Weitzel

Ranking: Regular Member

Mensagens: 203

Data de entrada: 18 de Novembro de 2009

Mensagens recentes

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.