Partager via


How to: Add a Link to the Online Services Section of the Home Page

 

Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials

An add-in can add links to the Online Services section of the home page. Links are added to Online Services by adding ServiceLink elements to the webaddin.xml file.

Note

You can create a new website that can also be accessed from a link in Online Services. The creation of a new website is not described in this document.

The following table lists the child elements of the ServiceLink element.

Element Description
Text Defines the text that is displayed for the link.
Link Defines the Url for the link.
Icon Defines the icon that represents the link.
  1. Open Visual Studio 2010 as an administrator by right-clicking the program in the Start menu and selecting Run as administrator.

  2. If you have not already created a new project, complete the procedure listed in How to: Create a New Project For Your Remote Web Access Add-In.

  3. Open the webaddin.xml file.

  4. Add a new ServiceLink element to the webaddin.xml file. The ServiceLink element is a child element of ServiceLinks. For example, the following xml code adds a link to Online Services:

    <ServiceLinks>  
       <ServiceLink>  
          <Text>ServiceLink 1 for sample add-in</Text>  
          <Link>https://www.microsoft.com</Link>  
          <Icon>link1.png</Icon>  
       </ServiceLink>  
    </ServiceLinks>  
    
  5. Save the webaddin.xml file.

  6. Publish the application.