Customizing the Login Download Menu
|
Changes to the Login page download menu are made by editing login.xsl or downloadControl.xsl. Be sure to make backup copies of these files before you edit them. The location of login.xsl and downloadControl.xsl depends on which VMware server you are using and your configuration; the default locations are:
- VMware GSX Server for Windows:
C:\Program Files\VMware\VMware Management Interface\htdocs\vmware\themes\default\
- VMware GSX Server for Linux:
/home/vmware/mui/apache/htdocs/vmware/themes/default/
- VMware ESX Server:
/usr/lib/vmware-mui/apache/htdocs/vmware/themes/default/
Whenever you edit login.xsl or downloadControl.xsl, be sure to restart the VMware Management Interface (on a Windows host, in the IIS window, stop and start the management interface; on a Linux host, restart Apache by typing `/etc/init.d/httpd.vmware restart`) and reload the Login page.
Removing the “Customize this menu...” Link
The login.xsl file contains the following line:
<xsl:with-param name="customizeLink">show</xsl:with-param>
To remove the “Customize this menu...” link, replace “show” with “hide”:
<xsl:with-param name="customizeLink">hide</xsl:with-param>
After saving your changes to login.xsl, restart the VMware Management Interface and reload the Login page.
Removing the Download Menu
The login.xsl file contains the following lines:
<xsl:call-template name="downloadControl">
<xsl:with-param name="customizeLink">show</xsl:with-param>
</xsl:call-template>
To remove the download menu from the Login page, comment the lines out as shown below:
<!-- <xsl:call-template name="downloadControl">
<xsl:with-param name="customizeLink">show</xsl:with-param>
</xsl:call-template> -->
After saving your changes to login.xsl, restart the VMware Management Interface and reload the Login page.
Adding Items to the Download Menu
Each menu item appears on a line by itself in downloadControl.xsl. All the menu items appear between the comments:
<!-- Download Menu [ -->
and:
<!-- ] Download Menu -->
Each item contains a URL specifying the location of a download file and a descriptive label in the following format:
<option value="/url/of/file">Description of file</option>
To add a menu item, simply add a line like the one shown above to downloadControl.xsl. Be sure to specify the URL and provide a description.
For instance, the VMware Remote Console installers are located in your VMware Management Interface directory:
...\VMware Management Interface\htdocs\vmware\bin\
and can be accessed by directing any Web browser to:
http://HOSTNAME/vmware/bin/PACKAGE
Where HOSTNAME is the VMware Management Interface server in question and PACKAGE is the file name of the desired package. The downloadControl.xsl line for such packages looks like:
<option value="/vmware/bin/VMware-console-v.v.v-xxxx.exe">VMware Remote Console for Windows</option>
As a further example, the VMware Scripting API installer files are contained in zip files that are available from the GSX Server 2.0 download Web page and from the product CD. If you want to distribute the API packages on the Login page, VMware suggests that you put the installers in the "...\vmware\bin\" directory and add a line to downloadControl.xsl such as:
<option value="/vmware/bin/VMware-VmCOMAPI-v.v.v-xxxx.exe">VMware COM Scripting API for Windows</option>
After saving your changes to downloadControl.xsl, restart the VMware Management Interface and reload the Login page.
Removing Items from the Download Menu
Remove or comment out each menu item in downloadControl.xsl that you do not want to appear in the download menu. A commented line looks like this:
<!-- <option value="/url/of/file">Description of file</option> -->
After saving your changes, restart the VMware Management Interface and reload the Login page.
|