There are four main tasks you can do with this tools:
- liferay-theme
- liferay-theme:import
- liferay-theme:layout
- liferay-theme:themelet
Create a Liferay theme with Yeoman
# Install liferay theme generator
sudo npm install -g generator-liferay-theme
# Install Yeoman
sudo npm install -g yo
# Run the Yeoman generator
yo liferay-theme
There are two base themes:
- unstyled
- styled
Important files in a theme:
portal_normal.ftl
- Banner
- Content
- Footer
navigation.ftl
portal_pop_up.ftl
portlet.ftl
init.ftl
init_custom.ftl