Message Boards
What is the correct way to create a liferay theme?
What is the correct way to create a liferay theme?
New Member Posts: 22 Join Date: 11/24/20 Recent PostsHello,
I am wondering what is the correct way of creating a new custom theme
for liferay CE 7.3.5ga6?
Should I generate a new theme via yeoman and this command:
yo liferay-theme
or
should I simply use the eclipse Liferay IDE and create it over
File -> New -> Liferay module Project -> Project Template Name -> 'Theme' ?
Is there any difference between these options?
RE: What is the correct way to create a liferay theme?
New Member Posts: 13 Join Date: 4/13/20 Recent PostsIt depends on the developers preferences, now you have these two ways to generate a new theme because the front-end developers no need to have Liferay IDE opened for their development. Normally they prefer to use other tools more friendly with front-end code together with NPM commands.
The only difference, I might say... is that if it is generated with yo liferay-theme is the deploy path asked. If you generate from IDE this path is not asked, because is suppose you are using a liferay-workspace and the setting about the path to deploy is inside gradle.properties.
Note: doesn’t matter if you generate outside. But if you want to put it to organize and deploy the theme inside a liferay-workspace after generate with Theme Generator, you need to be put inside "{liferay_workspace}/themes" folder.
RE: RE: What is the correct way to create a liferay theme?
New Member Posts: 22 Join Date: 11/24/20 Recent Poststhanks for your quick answer!
So even if there are some differences in files like for example web.xml (Liferay IDE) vs liferay-look-and-feel.xml (yo liferay-theme) it does not matter at all which approach I use in my project?
RE: RE: What is the correct way to create a liferay theme?
New Member Posts: 13 Join Date: 4/13/20 Recent PostsYou can use the same scaffolding, generated by Yeoman inside the theme generated by Blade, this is just a difference by template which is generated because comes from Blade Template and other come from a Yeoman Template, one has dependencies on build.gradle and the other has the package.json. But the result finally after generating a war file it’s the same for both.