Assigning unique name to theme

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 theme but i could not find any way to assign unique name to theme using Admin console so this is what i did

  • First install theme on portal using Theme and Skins portlet

  • Then i did full export of the portal using xmlaccess

  • Then i did find the theme 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">
    <theme action="update" active="true" default="false" defaultskinref="K_VVILMKG10GV1F0IIS98H1C0002" domain="rel"
    objectid="J_VVILMKG10GV1F0IIS98H1C0004" resourceroot="empty"
    uniquename="com.webspherenotes.emptytheme" >
    <localedata locale="en">
    <title>Empty</title>
    </localedata>
    </theme>
    </portal>
    </request>

    In this theme 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: