Import a theme
Perform the steps in this task to import a theme using an XML file.
- Edit DeployYourTheme.xml. Verify that the context root is correct, then save and close the file. The following is an example of how to edit this file:
<?xml version="1.0" encoding="UTF-8"?> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_6.1.0.xsd" type="update" create-oids="true"> <portal action="locate"> <!-- Sample for deploying themes and skins in an XML script. Note that this only created the database entries; you still need to provide the rendering JSPs under the resource root directories specified in the XML. --> <skin action="update" active="true" objectid="NoSkin" uniquename="wps.skin.noSkin" resourceroot="NoSkin" > <localedata locale="en"> <title>NoSkin</title> <description>A skin with no skin</description> </localedata> </skin> <theme action="update" active="true" defaultskinref="NoSkin" uniquename="ibm.portal.theme.Your_Theme" resourceroot="yourtheme" context-root="/yourtheme"> <localedata locale="en"> <title>Your_Theme</title> </localedata> <!-- There's only one skin that may be combined with this theme. --> <allowed-skin skin="NoSkin" update="set"/> </theme> </portal> </request>- Login to WebSphere Portal
- Execute...
Administration | Import XML | MyTheme.xml | Import
- Execute...
Administration | Themes and Skins | MyTheme | Edit Theme
- Select the IBM skin as the default skin
- Click Add | OK.
- Select the newly added IBM skin and click...
Select as default
- Execute...
Administration | Manage Pages | Content Root | Home | New Page
...Fill out the fields for the new page using the new theme.
- Click Home and select the new page to see the new theme applied.
Parent topic:
Customize the portal
Related concepts
Portal style classes
Work with portal navigation
Use JSTL tags in the portal JSPs
User and group management
Creating a new theme
Deploy the theme
Creating a new skin
Enable automatic JSP reloading
Supporting new clients
Supporting new markup languages
Changing banner text
Use the color palette in themes
Performance guidelines for themes and skins
Changing the page help