Create your own skin

 


Defining your own skins involves creating a subdirectory using the skin name in...

was_root/installedApps/hostname/wps.ear/wps.war/skins/markup/

...and creating the supporting resources within that directory.

The following steps describe one way to create your own HTML-based skin using an existing skin.

  1. Create a new directory using the new skin name, for example,...

    was_root/installedApps/hostname/wps.ear/wps.war/skins/markup/MySkin

    Avoid using DBCS characters in the directory name.

  2. Copy all of the files and subdirectories from another skin directory into the new directory. For example, you could copy the files from the /Fade skin.

  3. Make updates to the following files according to the requirements of your portal site.

    JSPs

    Edit Control.jsp to create the title bar and border around individual portlets. The other JSPs, such as UnlayeredContainer-H.jsp and UnlayeredContainer-V.jsp, are used by the portal customization to arrange portlets within the page.

    images

    These are images that are used to create the portlet title bar or background images. For example, title_help.gif is used to render the icon that opens the portlet help mode. You can modify these images or create your own and add them to the JSPs.

  4. To add the skin, use the Themes and Skins portlet under Administration, Portal User Interface. The skin name that you add must be the same as the subdirectory name that you used for the skins.

  5. Use the Appearance portlet to test and make changes to the new skins as you are working on them.

  6. When you are ready to provide the skin for general use, create a preview that users and administrators can see from the page properties.
    1. Create a screen capture of the skin.
    2. Reduce the screen capture image to fit in the preview box. The recommended size is 307 x 159 pixels.
    3. Name the image preview.gif. GIF files are limited to 256 colors.
    4. Copy the image to was_root/installedApps/hostname/wps.ear/wps.war/skins/html/skin_name. In this example, the file and location are: was_root/installedApps/hostname/wps.ear/wps.war/skins/html/MySkin/preview.gif .

  7. After the skin is fully developed and tested, update and redeploy the WebSphere Portal EAR file with the new skin. For more information, see Deploying customized themes and skins.

 

Improving the performance of skins

WebSphere Portal includes a lightweight skin that demonstrates some of the design features that you could omit for better performance. For information about these features, see Lightweight themes and skins.

In addition to the lightweight skins, you can configure the Default and NoSkin skins for better performance.

 

See also

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.