O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing a theme through Velocity templates

On any project, there will be a custom theme. A client usually asks for the following customizations:

  • Update the company logo
  • Customize the dock or remove it
  • Change the portlet icon
  • Hide the maximize, minimize, and remove buttons from the non-admin users
  • Customize the content in the footer part

As you know, customizing a theme includes work related to images, JavaScript, CSS, and templates. Now that we are focusing on Velocity in this chapter, we will update the portal_normal.vm file to see what can be achieved by editing a template.

Adding content through a template

We will create a Noir theme first.

  • Run create.bat noir Noir in the ${PLUGINS_SDK_HOME}/themes/ directory. This will create a Noir theme
  • Copy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required