The design and functionality of a Liferay site can be adjusted and customized through a variety of complementary mechanisms. This table summarizes and contrasts which Liferay functions and tools can be used to achieve common tasks and goals:
|Features||Style Books||Master Page Templates||Themes|
|Embed common fragments/widgets||✓||✓|
|Define common layouts for pages||✓||✓|
|Managed through the UI||✓||✓|
|Customize styles, spacing, colors, etc.||✓||✓|
|Add extra functionality||✓|
Master Page Templates allow you to define common elements for your pages using Fragments, especially headers and footers. You can use them to conform any number of pages on your Site to the look and feel you design.
Style Books are sets of visual standards that apply to a Site, such as standard colors and spacing. This allows you to design every page’s layout independently while maintaining a consistent experience between each of them.
Fragments and widgets are the building blocks of your Site. There are many ways to customize them to suit your Site’s appearance.
- Fragment customizations can be used to tailor the look and feel of your Site’s Fragment Pages
- Application Display Templates allow you to customize the appearance and behavior of the widgets on your Site
Themes are a highly flexible tool for customizing the default look and feel of your Site. They provide a foundation that your Style Books and Page Templates build on top of. Widgets can also be embedded in the themes themselves to ensure a particular arrangement.