Import a theme

 

+

Search Tips   |   Advanced Search

 

Perform the steps in this task to import an XML theme.

  1. 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. 
          This only creates 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>
    

  2. Login to WebSphere Portal

  3. Select...

    Administration | Import XML | yourtheme.xml | Import

  4. Select...

    Administration | Themes and Skins | new_theme | Edit Theme | IBM - portal default skin | Add | OK

  5. Select...

    Administration | Manage Pages | Home | New Page

    ...and fill out the fields for the new theme.

  6. Click Home and select the new theme to see it applied.

 

Parent topic

Customizing the portal