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 117
<!-- DS_SAVEBUTTON "checksubmit=formDataValid()" -->
DS_EDITASBUTTON
Displays a button which, when clicked, allows editing of an entry using a non-default
template. This directive must appear within a
DS_ENTRYBEGIN... DS_ENTRYEND block.
Arguments
label=text. Use text as the label on the button. If not provided, the text Edit As is used.
template=template-name. Use the template name
template-name when editing.
Example
A button to bring up edit-passwd.html template:
<!-- DS_EDITASBUTTON "label=Change Password" "template=passwd" -->
DS_NEWPASSWORD
Displays an HTML password INPUT field. This directive must appear within a
DS_ENTRYBEGIN...DS_ENTRYEND block.
Arguments
None.
DS_CONFIRM_NEWPASSWORD
Displays an HTML password INPUT field. The gateway compares the value supplied by
the user in this field to the value in the
DS_NEWPASSWORD field and saves only the new
password value if the two match. This directive must appear within a
DS_ENTRYBEGIN...DS_ENTRYEND block.
Arguments
None.