The default theme sets the basic look and feel for all your portlets, and, through Portlet Decorators, gives you a way to fine-tune the look of individual portlets with the click of a mouse. But you aren’t limited to defaults. The following sections explain

  • how to modify themes to create custom templates for your portlets

  • how to create your own decorators to customize the look of your portlets individually

  • how to embed portlets in your themes, a function that lets you choose portlets to deploy automatically on any page where a given theme is used.

Theming Portlets

Themes can provide additional styles for your apps. You can change the markup for portlet containers by modifying the theme’s portlet.ftl file. This tutorial demonstrates how to style portlets with...

Read More

Embedding Portlets in Themes

You may occasionally want to embed a portlet in a theme, making the portlet visible on all pages where the theme is used. Since there are numerous drawbacks to hard-coding a specific portlet into...

Read More

Creating Configurable Styles for Portlet Wrappers

Portlet Decorators customize the style of an application’s wrapper. If you inspect the markup of your application when it’s on a page you’ll observe that it is wrapped by two layers. Among other...

Read More

Embedding Portlets in Themes and Layout Templates

You may occasionally want to embed a portlet in a theme or layout template, making the portlet visible on all pages where the theme/layout is used. Since there are numerous drawbacks to hard-coding...

Read More
0 (0 Votes)
Including Layout Templates with a Theme Previous