You must first understand the composition of the portal page and how the page elements are aggregated before creating your custom portal site.
Make sure that you have read the Layout of the portal page section before starting any of the tasks that are described in this section.
- Creating a new theme
Themes are a set of JSPs, images, and style sheets packaged together in a common directory structure. They can either be packaged directly in the wps.war or inside a separate WAR file of their own, or with other themes, skins, and resources. - Importing a theme
Perform the steps in this task to import a theme using an XML file. - Deploying the theme
Perform these steps to install your theme and verify that it is running. - Using the color palette in themes
Learn about the color palettes used in themes, define new color palettes, assign a color palette to a page, and reference a color palette in a CSS file. - Creating a new skin
Skins are a set of JSPs, images, and style sheets packaged as a WAR file. As deployable units, they have to follow a certain file layout which is determined by the application server and the portal server. Learn about creating your own HTML-based skins using existing skins. - Performance guidelines for themes and skins
After installation, IBM® WebSphere® Portal provides a default theme and skin that demonstrate the server's rich set of functions. If your site does not require all of the functionality provided by the shipped themes and skins, you can realize performance benefits by selectively removing some of those functions. - Enabling automatic JSP reloading
To view changes to your theme and skins JSPs without restarting the portal server, you can force the application server to automatically check for new versions of JSPs. While this is ideal for development and testing purposes, automatic JSP reloading should be disabled in a production environment because of performance issues. - Supporting new clients
Add a new client to your portal site using the Manage Clients administration portlets. - Supporting new markup languages
WebSphere Portal supports HTML markup language. You can define other markup languages to be supported, such as WML or cHTML. - Portal style classes
The CSS style sheets that are used for the portal page are dynamically generated by JSPs located in the /themes/Portal/ directory. You can change the tag definitions and the class definitions in the CSS style sheets. However, make sure that you do not delete any style sheets or remove any style classes. Portlets require these style classes for JSP output. - Changing text information
Change the text displayed in the banner of your portal page. - Changing the page help
Customize the help page to reflect the content and information for your organization's site. - Working with portal navigation
Learn how to implement navigation in a portal theme. You should be familiar with the portal structure, the Page Customizer, and the Managing Pages portlet. - Using JSTL tags in the portal JSPs
WebSphere Portal supports the use of tags from the JSP Standard Tag Library (JSTL). - User and group management
The Portal User Management Architecture (PUMA) System programming interface (SPI) provides interfaces for accessing the profiles of a portal User or Group .
Creating a new theme
Themes are a set of JSPs, images, and style sheets packaged together in a common directory structure. They can either be packaged directly in the wps.war or inside a separate WAR file of their own, or with other themes, skins, and resources.
The recommended best practice is to package them in a separate WAR file so that they are untouched across migrations and updates. This technique also enables them to be managed independently through staging operations without having to touch the wps.war application. Deploying updates to themes in separate WAR files can be done easily without having to bring the Portal server offline, particularly in clustered deployments.
If you have created themes or skins for an earlier release of WebSphere Portal , you will be able to easily migrate most of that work because the file layout and the lookup mechanisms (using the Portal custom JSP tags) to locate resources have not changed. However, the lookup works only within the same deployable unit, so resources can only be shared between themes that reside in the same WAR file.
Defining your own theme involves creating the directory structure for the artifacts of the theme. Typically, these reside in a subdirectory using a theme resource root.
The following steps describe one way of creating your own HTML-based theme using an existing theme. The steps refer to an existing theme as a sample starting point.
Enabling Organize Favorites functionality in custom themes
The "My Favorites" feature in WebSphere Portal lets you bookmark a page in the portal so that you can return to it at a later time. The page is then added to your "My Favorites" list which is maintained by means of the Organize Favorites feature. Organize Favorites, a page containing the Organize Favorites portlet, lets you create, edit, activate, order, and delete labels and URLs in the My Favorites list.
- Use the <portal-navigation:navigation> tag with the scopeUniqueName attribute as wps.p.Favorites to create the links to the Favorites in the theme. This replaces the <portal:favoritesLoop/> tag for enabling Organize Favorites functionality.
- Create a URL to Organize Favorites in the theme using the <portal-navigation:urlGeneration> tag to wps.OrganizeFavorites .
- Create a My Favorite label as described in the topic, Enabling the Organize Favorites portlet in themes.
- Add <portal-logic:if/> tags with the pageBookmarkable attribute set to true to pages that you want to be able to bookmark.
Improving the performance of themes
WebSphere Portal includes a lightweight theme that demonstrates some of the design features that you could omit for better performance.
Importing a theme
Perform the steps in this task to import a theme using an XML file.
Deploying the theme
Perform these steps to install your theme and verify that it is running.
- Depending on your version of WebSphere
Application Server
, click the appropriate
option:
- For WebSphere Application Server Version 6.1 : Click .
- For WebSphere Application Server Version 7.0 : Click .
- Search for the new theme.
- Select the application and click Start . A message appears that the application was started successfully.