Introduction
  Publishing web pages
  RXML
  Information tags
  String tags
  Variable tags
  URL tags
  If tags
  Graphics tags
  Database tags
  LDAP
    <ldap>
    <ldapoutput>
    <ldapfor>
  Programming tags
  SSI tags
  Image maps
  IntraSeek
  LogView
  Templates
  Navigation
  SiteBuilder tags
  Supports system
  Security
  Appendix
 
<ldapfor> </> LDAP module

 

Repeats the content for a multiple attribute values.

The <ldapfor> tag only works within the <ldapoutput> container tag!.

By default anything within #'s will be interpreted as a variable. Thus #attribute_name# will be replaced by the attribute value. ## will be replaced by a #. See formoutput page for more information about quoting.

 

Attributes

attr=attribute name
The attribute name. Required.

index=initial value
The initial value for index. If omitted the index=1 will be used.

step=increment
The increment for index. If omitted the step=1 will be used.

max=value
The restriction for returned values. If omitted all values will be returned.

 

Example


<table>
  <th>Name</th>
  <th>Phone</th>
<ldapoutput host=test basedn="c=US" scope="subtree"
 filter="(telephonenumber=*)">
  <tr>
    <td>#givenname# #sn#</td>
    <td>#telephonenumber:1#
        <ldapfor attr=telephonenumber index=2>
          , #telephonenumber#
        </ldapfor></td>
  </tr>
</ldapoutput>
</table>

Name Phone
#givenname# #sn# #telephonenumber:1# , #telephonenumber#