Assigning unique name to skin

WebSphere Portal SPI allows you to assign a theme to a page or skin to portlet window pro-grammatically, but if you want to do that then you will have to assign unique name to skin but i could not find any way to assign unique name to skin using Admin console so this is what i did


  • First install skin on portal using Theme and Skins portlet

  • Then i did full export of the portal using xmlaccess

  • Then i did find the skin to which i want to assign unique name and copied into a different xml like this

    <?xml version="1.0" encoding="UTF-8"?>
    <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" build="wp6103_201_01"
    type="update" version="6.1.0.3" xsi:noNamespaceSchemaLocation="PortalConfig_6.1.0.2.xsd">
    <portal action="locate">
    <skin action="update" active="true" default="false" domain="rel" objectid="K_VVILMKG10GV1F0IIS98H1C0002"
    resourceroot="empty" type="default"
    uniquename="com.webspherenotes.emptyskin" >
    <localedata locale="en">
    <title>Empty</title>
    </localedata>
    </skin>
    </portal>
    </request>

    In this skin element i did add uniquename attribute with value equal to the unique name that i want to assign

  • Import this xmlaccess script into the portal

1 comment: