您好我想安装和配置新主题并为 WebSpherePortal 服务器 6.1 设置皮肤。任何人为此 xmlaccess 提供参考或文档。
1 回答
在配置主题和皮肤之前,我们必须将主题复制到文件:\$server_root$\installedApps\IBM-710BB15A391\wps.ear\wps.war\themes\html 和皮肤到文件:\$server_root$\installedApps\IBM -710BB15A391\wps.ear\wps.war\skins\html 对于皮肤: 1)注册皮肤
注册皮肤.xml:
<?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">
<skin action="update" active="true" objectid="rockskin" uniquename="rockskin"
resourceroot="w3skin">
<localedata locale="en">
<title>rockskin</title>
</localedata>
</skin>
</portal>
</request>
->xmlaccess.bat –in RegisterSkin.xml -out -user usrname –pwd 密码 –url http://localhost:10040/wps/config
2)注册主题
i) 使用已存在的皮肤注册主题RegisterTheme1.xml:
<?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">
<skin action=”locate” active=”true” objectid=”noSkin”
uniquename=”wps.skin.noSkin”/>
<theme action="update" active="true" defaultskinref="noSkin "
uniquename="rocktheme" resourceroot="w3theme">
<localedata locale="en">
<title>Rock Theme</title>
</localedata>
<allowed-skin skin=" noSkin" update="set"/>
</theme>
</portal>
</request>
->xmlaccess.bat -in RegisterTheme1.xml -out -user usrname -pwd 密码 -url http://localhost:10040/wps/config
ii)用新皮肤注册主题在上面的xml文件中,我们使用的是现有的皮肤名称noSkin如果你想申请新的皮肤,你必须提到如下:
注册主题2.xml:
<?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">
<skin action="update" active="true" objectid="newSkin"
uniquename="newSkin " resourceroot="newSkin ">
<localedata locale="en">
<title>rockskin</title>
</localedata>
</skin>
<theme action="update" active="true" defaultskinref="newSkin " uniquename="
w3theme " resourceroot="w3theme">
<localedata locale="en">
<title>Rock Theme</title>
</localedata>
<allowed-skin skin="newSkin " update="set"/>
</theme>
</portal>
</request>
->xmlaccess.bat -in RegisterTheme2.xml -out -user usrname -pwd 密码 -url http://localhost:10040/wps/config
注意:皮肤和主题中的resourceroot 必须是您复制的主题和皮肤文件夹名称。