透過在CWA Server上的自訂,您可以在CWA 網頁元件上增加網頁連結的清單選項。在預設上,CWA提供的功能選項有四個:聯絡人、選項、立即開會、登入。
透過在CWA Server上的自訂,您可以在CWA 網頁元件上增加網頁連結的清單選項。在預設上,CWA提供的功能選項有四個:聯絡人、選項、立即開會、登入。這四個功能選項既不能去變更編輯也無法去停用隱藏。但是您卻可以新增功能選項,讓使用CWA的使用者在選項上啟用網站連結的功能去另外開啟一個瀏覽的視窗。
注意:自訂的連結清單選項只會套用在CWA 用戶端上,不會在Communicator上顯示出來。
使用XML 的元素清單如下:
Element | Description | Allowed values |
menu | Indicates the section of CustomConfig.xml devoted to the custom menu. | active="True" active="False" When set to True, the custom menu is displayed in Communicator Web Access. If set to False, the custom menu is not displayed in Communicator Web Access. The default menus - Contacts, Options, Meet, and Sign Out - are always displayed, regardless of whether or not the active element has been set to False. In addition, set the value of the title attribute to the name to be given your custom menu. For example, use this code to set the name of the menu to Links: title="Links" |
menuitem | XML node that corresponds to a single menu item in the parent menu. | You must specify at least 1 menu item in order for the custom menu to display. Your custom menu can have as many as 15 menu items. |
displayname | The name given to the menu item. | Any alphanumeric string. For example: <displayname>Contoso</displayname> |
url | The URL that the menu item links to. | Any valid universal naming convention (UNC) path or Uniform Resource Locator (URL). If you enable the custom menu for external users (see later in this table) make sure this path is accessible to those users. |
accessibility | Determines whether the menu item will be displayed to internal users, external users, or both. | <accessibility>inside</accessibility> <accessibility>outside</accessibility> <accessibility>both</accessibility> If the accessibility element is set to inside, only internal users (that is, those users connecting to Communicator Web Access from inside the firewall) will see the menu item. For example, if a menu item refers to a UNC path which is not accessible to external users, you can set the accessibility element for that menu item to inside. This will ensure that the menu item is available to internal users only. If the accessibility element is set to outside, only external users (that is, those users connecting to Communicator Web Access from outside the firewall) will see the menu item. If the accessibility element is set to both, then all users (that is, internal and external) will see the menu item. |
Ø 開始自訂CWA的網頁標籤
1. 在CWA Server上的C:\Program Files\Microsoft Office Communications Server 2007 R2\Communicator Web Access\Server\CWA\Client編輯CustomConfig.xml檔。
2. 在CustomConfig.xml檔內容裡找到如下的預設資訊。
<menu active = "false" title = "NewMenu"> <menuitem> <!--the string name of the sub menu item to appear in the drop down menu --> <displayname>Microsoft</displayname> <!-- the url to which the menu item should hyper link --> <url>http://www.microsoft.com</url> <!-- whether the menu item should appear for external, --> <!-- or both users. --> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>MSN</displayname> <url>http://www.msn.com</url> <accessibility>external</accessibility> </menuitem> <menuitem> <displayname>MSWEB</displayname> <url>http://msweb</url> <accessibility>internal</accessibility> </menuitem> </menu> |
3. 檔案的內容須做些許的修改,其他的內容參數可以繼續套用。
<menu active = "true" title = "入口連結"> <menuitem> <displayname>Microsoft</displayname> <url>http://www.microsoft.com/zh/tw</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>Yahoo</displayname> <url>http://tw.yahoo.com.tw</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>Google</displayname> <url>http://www.google.com.tw</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>Pchome</displayname> <url>http://www.pchome.com.tw</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>百度</displayname> <url>http://www.baidu.com</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>HP</displayname> <url>http://www.hp.com/country/tw/zh</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>東森新聞</displayname> <url>http://www.nownews.com</url> <accessibility>both</accessibility> </menuitem> <menuitem> <displayname>MSN</displayname> <url>http://tw.msn.com</url> <accessibility>external</accessibility> </menuitem> <menuitem> <displayname>MSWEB</displayname> <url>http://msweb</url> <accessibility>internal</accessibility> </menuitem> </menu> |
4. 檔案編輯完成後,CWA Server的IIS服務必須重起。在開始_執行輸入iisreset /restart。
參考資源:
1. Customizing Communicator Web Access 2007 R2
http://technet.microsoft.com/en-us/library/dd572788(office.13).aspx