A server behavior is a reusable component for server-side development.
They add blocks of code to your pages for accomplishing specific tasks.
Dreamweaver comes with several default server behaviors and the InterAKT
extensions add many more to this list.
The InterAKT Dynamic Data tool is a replacement for the standard dynamic
data dialog. It is used in the MX Kollection 3, to provide a unified way
of building mark-ups, or place holders. These are recordset fields, server
or session variables, and other types of dynamic data that are replaced
at runtime by their corresponding values
Configure Download File interface
Before using the Download Fileserver behavior,
if you do not wish it to generate the default download link, you have
to create your own page element that will start the download operation
(a button, text section or image).
Access the server behavior from the Application
panel, Server Behaviors -> + -> MX Kollection
-> File Upload -> Download File. The user interface that
opens has one tab. Configure it as shown below.
To set the dialog box options, follow the next steps:
In the File folder text-box
enter the folder where the files are stored. You can either type in the
name or use the Browse button to select
it from one of the site's folders. If you want to create the file name
from dynamic and static data, use the InterAKT
Dynamic Data lightning bolt icon to insert dynamic placeholders that
will be replaced at run-time.
In the Recordset drop-down
menu select the recordset containing the field with the filename. This
menu will display all recordsets found on the page.
In the Field drop-down
menu select the table (recordset) column storing the filename. If the
filename is not stored in a table, select either None
or None: Rename rule. In the last case, the
Renaming rule text-box enables.
In the Renaming rule
text box, when enabled (when the filename is not stored in a table column),
enter the file name format. You can use both static text and dynamic data,
by pressing the InterAKT Dynamic
Data lightning bolt icon. This will allow selection of dynamic variables
that will be inserted in the text box as placeholders that will be replaced
at runtime.
The Contextual help
displayed on the bottom of the dialog box offers information regarding
each field.
The three buttons in the top right corner of the
interface offer you the next functionalities:
· Click OK when you are done configuring the server behavior.
· Click Cancel to exit without applying the new settings.
· The Help button opens this help page.