Import a theme


  1. Edit DeployYourTheme.xml

      <?xml version="1.0" encoding="UTF-8"?>
      
      <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xsi:noNamespaceSchemaLocation="PortalConfig_7.0.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>

    Verify that the context root is correct, then save and close the file.

  2. Login to WebSphere Portal and select...

      Administration | Import XML | DeployYourTheme.xml | Import

  3. Select...

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

  4. Select the newly added IBM skin and click...

      Select as default
  5. Select...

      Administration | Manage Pages | Content Root | Home | New Page

    Fill out the fields for the new page using the new theme.

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


Parent

Customize the portal
Portal style classes
Work with portal navigation
Use JSTL tags in the portal JSPs


Related tasks


Deploy the theme
Create a new skin
Enable automatic JSP reloading
Add support for new clients
Add support for new markup languages
Change banner text
Use the color palette in themes
Performance guidelines for themes and skins


Change the page help


+

Search Tips   |   Advanced Search