Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 706 Bytes

session-5-theme-generation.md

File metadata and controls

57 lines (31 loc) · 706 Bytes

Session 5. Liferay Theme Generator

There are four main tasks you can do with this tools:

  • liferay-theme
  • liferay-theme:import
  • liferay-theme:layout
  • liferay-theme:themelet

Developing themes

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

Base themes

There are two base themes:

  • unstyled
  • styled

Files in a theme

Important files in a theme:

portal_normal.ftl

  • Banner
  • Content
  • Footer

navigation.ftl

portal_pop_up.ftl

portlet.ftl

init.ftl

init_custom.ftl