Microsoft KB Archive/253536

= Modifying the HTML Search Results Page in Microsoft Metadirectory Services =

Article ID: 253536

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Metadirectory Services 2.1

-



This article was previously published under Q253536



SUMMARY
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.



MORE INFORMATION
Using Compass, follow these steps:  Search in the metadirectory for an object called "defaulthtmltemplate" and then open its properties. 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. Scroll down the template until you see:

+BeginList+

 +myRdn1+  +mail+  +telephoneNumber+ +title+ </FONT>

+EndList+

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.

</li> 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:

+BeginList+

<SPAN STYLE="text-decoration:none><FONT FACE ="Arial" size="1"> <td VALIGN="top" width="120" align="left">+myRdn1+</A>  +mail+ </A> +telephoneNumber+ +title+ +location+ </FONT>

+EndList+

</li> After you make your change to the template, click OK to save your changes.</li></ol>

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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.