您好我想安装和配置WebSpherePortal服务器6.1的新主题和外观。 任何人都为此xmlaccess提供参考或文档。
答案 0 :(得分:0)
在配置主题和皮肤之前,我们必须将主题复制到文件中:\ $ server_root $ \ installedApps \ IBM-710BB15A391 \ wps.ear \ wps.war \ themes \ html 和皮肤进入 文件:\ $ server_root中$ \ installedApps \ IBM-710BB15A391 \ wps.ear \ wps.war \皮肤\ HTML 对于皮肤: 1)注册皮肤
RegisterSkin.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>
- &gt; xmlaccess.bat -in RegisterSkin.xml -out -user usrname -pwd password -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>
- &gt; xmlaccess.bat -in RegisterTheme1.xml -out -user usrname -pwd password -url http://localhost:10040/wps/config
ii)用新皮肤注册主题 在上面的xml文件中,我们使用现有的皮肤名称noSkin 如果你想申请新的皮肤,你必须提到如下:
RegisterTheme2.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>
- &gt; xmlaccess.bat -in RegisterTheme2.xml -out -user usrname -pwd password -url http://localhost:10040/wps/config
注意:皮肤和主题中的resourceroot必须是您复制的主题和皮肤文件夹名称。