Microsoft KB Archive/253536

From BetaArchive Wiki
Knowledge Base

Modifying the HTML Search Results Page in Microsoft Metadirectory Services

Article ID: 253536

Article Last Modified on 11/1/2006


  • Microsoft Metadirectory Services 2.1

This article was previously published under Q253536


You can modify all the HTML templates in the directory. This article describes how to modify the Search results field by adding a Location field to be returned to the Web browser.


Using Compass, follow these steps:

  1. Search in the metadirectory for an object called "defaulthtmltemplate" and then open its properties.
  2. Click the Web Search Response tab. This is the HTML template that is stored in the directory. This template is used when a search is initiated. All the search results are displayed using this template.
  3. Scroll down the template until you see:


    <A HREF="/?scid=%2fframes%2bmydn%2b" target=_top>+myRdn1+</A> <A HREF="mailto:+mail+"> +mail+ </A>


    This is the portion of the template that defines the output fields for the Web browser. When you perform a search you get the following fields back: MyRdn1 (the person's name), Mail, Telephone, and Title.

  4. You can add or replace any of the attributes here by referring to the attributes with the "+" modifier. To add the Location attribute to your search results, specify the attribute with the modifier before and after the attribute name (for example, +location+). The portion of the template listed above would appear as follows:


    <A HREF="/?scid=%2fframes%2bmydn%2b" target=_top>+myRdn1+</A> <A HREF="mailto:+mail+"> +mail+ </A>
    +title+ +location+


  5. After you make your change to the template, click OK to save your changes.

Please refer to the MMS online documentation for more information about HTML modifiers.

Additional query words: Zoomit Via MA zscript genlogs

Keywords: kbenv kbinfo KB253536