
Customizing Search Result Templates
80 Red Hat Directory Server Gateway Customization Guide • April 2005
A new search result template is required for each new object class that is not a child of
another object class.
Modifying Search Result Templates
This section covers:
• Adding Information to Search Results
• Removing Information from Search Results
Adding Information to Search Results
This example shows how additional information can be added to the search result by
modifying the corresponding search result template.
<TR>
<TH NOWRAP>Name<TH NOWRAP>Phone Number<TH NOWRAP>E-Mail
Address<TH NOWRAP>Title<TH NOWRAP>Organizational Unit
</TR>
<TR>
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=dn" "syntax=dn" "label=" -->
onMouseOver="window.status='Click here to view this entry in
detail'; return true">
<!-- DS_ATTRIBUTE "attr=cn" "numfields=0" "defaultvalue=name"
"options=readonly" -->
</A>
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=telephoneNumber" "syntax=tel" -->
<TD NOWRAP>
<!-- DS_ATTRIBUTE "attr=mail" "syntax=mail" -->
<TD NOWRAP>
Org-Units list-Org-Units.html Organizational unit name, description,
and phone number.
Anything list-Anything.html Name, phone number, e-mail address,
and description.
Table 6-3 Default Search Results for Search Objects (Continued)
Search Object Search Result Template Used Search Results Displayed
Comentarios a estos manuales