Installation guide
Table Of Contents
- Gateway Customization Guide
- Contents
- Preface
- Introduction
- Setting Up the Gateway
- Gateway Installation Planning
- HTTP Server Configuration
- Creating a New Gateway Instance
- Gateway .conf File Configuration
- Configuring Gateway Clients
- Gateway Localization
- File Controlling Gateway Functionality
- Editing Entry Types
- Search Attributes, Filters, and Results
- Customizing Graphics and Color
- Parameters Defined in the .conf File
- Gateway Directives
- Introduction
- Context-Related Directives
- Entry-Related Directives
- DS_ENTRYBEGIN
- DS_ENTRYEND
- DS_ATTRIBUTE
- DS_OBJECTCLASS
- DS_VIEW_SWITCHER
- DS_SORTENTRIES
- DS_SEARCHDESC
- DS_POSTEDVALUE
- DS_EDITBUTTON
- DS_DELETEBUTTON
- DS_SAVEBUTTON
- DS_EDITASBUTTON
- DS_NEWPASSWORD
- DS_CONFIRM_NEWPASSWORD
- DS_OLDPASSWORD
- DS_HELPBUTTON
- DS_CLOSEBUTTON
- DS_BEGIN_ENTRYFORM
- DS_END_ENTRYFORM
- DS_EMIT_BASE_HREF
- DS_DNEDITBUTTON
- DS_BEGIN_DNSEARCHFORM
- DS_ATTRVAL_SET
- IF/ ELSE/ ELIF/ ENDIF
- Miscellaneous Directives
- CGI Usage
- Index
- List of Tables
Entry-Related Directives
Appendix B Gateway Directives 115
DS_SORTENTRIES
Specifies that entries should be sorted; typically used within list templates. This directive
must appear within a
DS_ENTRYBEGIN...DS_ENTRYEND block. Up to two
DS_SORTENTRIES directives are honored (the attribute from the first one that appears is
used as the primary sort key, and the second one is used as a secondary sort key).
Arguments
attr=attrname. Sort the entries in ascending order by attrname.
Example
To sort a list of entries by common name:
<!-- DS_SORTENTRIES "attr=cn" -->
DS_SEARCHDESC
Specifies that text describing the type of search done should be displayed. For example,
“Found 14 entries where the phone number ends with '25.'”
Arguments
None.
DS_POSTEDVALUE
Echoes the contents of an arbitrary posted form variable within a VALUE= parameter.
Arguments
name=varname. The name of the form variable.
Example
If a variable called searchstring is posted and contains the text John Doe, the directive
<!-- DS_POSTED_VALUE "name=searchstring" -->
will produce the following
HTML: VALUE="John Doe"