當您開啟CWA的網頁後,畫面本身是CWA Server所提供的登入資訊。而且網頁也沒有相關提示公司的內容,這時您可以透過自訂的方法...
當您開啟CWA的網頁後,畫面本身是CWA Server所提供的登入資訊。而且網頁也沒有相關提示公司的內容,這時您可以透過自訂的方法,將公司的名字與商標甚至是任何的訊息透過CWA 登入網頁的首頁以及頁尾呈現出來。
注意:設計上您不需要修改CWA登入的頁面,反而您需要設計兩個HTML的網頁;一個放置在CWA的頁首,另一個放置頁尾。這兩個網頁會在iFrame裡顯示出來,而且允許一個或是多個HTML檔案插入HTML的架構中。
預設開啟的螢幕大小比例大約是高390圖素X寬 690的圖素。因此,您自己期望的頁首與頁尾大小則必須符合以下的規定:
u 視窗的寬度不超過它自己在標誌上的寬度。
u 在預設登入的視窗加上頁首與頁尾的高度在你的使用者螢幕上是適合適當的。
使用XML 的元素清單如下:
Element | Description | Allowed values |
logon | Indicates the section of CustomConfig.xml devoted to the custom header and footer. | active="True" active="False" When set to True, the sign-on page displays the custom header and footer (this assume that you have specified a custom header and footer). If set to False, the default sign-on page does not display the custom header or footer, which is the case even if you have specified a custom header or footer. To see the custom sign-on page, you must set the value to True. |
header | The URL of the Web page that serves as the sign-on page header. Note that the header will be displayed only if the active attribute of the <logon> element is set to True. | Any URL accessible to your users. If external users are able to access Communicator Web Access, this URL must be available from outside the firewall. |
footer | The URL of the Web page that serves as the sign-on page footer. Note that the footer will be displayed only if the active attribute of the <logon> element is set to True. | Any URL accessible to your users. If external users are able to access Communicator Web Access, this URL must be available from outside the firewall. |
headerframeheight | The height, in pixels, of the header. This represents the amount of space to be used for the header, regardless of the actual size of the Web page serving as the header. For example, if the frame height is 100, only the first 100 pixels of the header Web page are displayed. | An integer value. |
footerframeheight | The height, in pixels, of the footer. This represents the amount of space to be used for the footer, regardless of the actual size of the Web page serving as the footer. For example, if the frame height is 100, only the first 100 pixels of the footer Web page are displayed. | An integer value. |
Ø 開始自訂登入的螢幕視窗
1. 您可以新增兩個需要套用到頁首與頁尾的HTML擋。並且將他們放置在CWA Server與您自己在防火牆內部或是外部可以連線存取的網路位址。在這邊我是使用可以連線的到的網路資源,如Microsoft與Yahoo。
2. 在CWA Server上的C:\Program Files\Microsoft Office Communications Server 2007 R2\Communicator Web Access\Server\CWA\Client編輯CustomConfig.xml檔。
3. 選擇的內容Default如下所示!
<?xml version="1.0" encoding="utf-8" ?> <!-- Add comments here --> <!-- Note: the Xml tags are case sensitive!!! --> <CWACustomization> <Logon Active = "false"> <!-- contains the url of the file that should be loaded into the header iFrame --> <!-- in the log on page if logon is set to active = true --> <Header>http://www.microsoft.com</Header> <!-- contains the url of the file that should be loaded into the footer iFrame --> <!-- in the log on page if logon is set to active = true --> <Footer>http://www.microsoft.com</Footer> <!-- contains the height in pixels of what the header iFrame should be set at --> <HeaderFrameHeight>100</HeaderFrameHeight> <!-- contains the height in pixels of what the footer iFrame should be set at --> <FooterFrameHeight>100</FooterFrameHeight> </Logon> |
4. 編輯完成並儲存後如下所示!
<?xml version="1.0" encoding="utf-8" ?> <CWACustomization> <Logon Active = "true"> <Header>http://www.microsoft.com</Header> <Footer>http://www.microsoft.com</Footer> <HeaderFrameHeight>100</HeaderFrameHeight> <FooterFrameHeight>100</FooterFrameHeight> </Logon> |
5. 編輯完成後,CWA Server的IIS服務必須重起。在開始_執行輸入iisreset /restart。
6. 開啟CWA的網頁其結果如下:
7. 可以隨您的需要去修改標誌視窗的內容
<?xml version="1.0" encoding="utf-8" ?> <CWACustomization> <Logon Active = "true"> <Header>http://www.microsoft.com</Header> <Footer>http://tw.yahoo.com</Footer> <HeaderFrameHeight>100</HeaderFrameHeight> <FooterFrameHeight>100</FooterFrameHeight> </Logon> |
參考資源:
1. Customizing Communicator Web Access 2007 R2